Re: src/backend/Makefile CDPATH Patch

Поиск
Список
Период
Сортировка
От Ross J. Reedstrom
Тема Re: src/backend/Makefile CDPATH Patch
Дата
Msg-id 20010423164703.B20734@rice.edu
обсуждение исходный текст
Ответ на Re: src/backend/Makefile CDPATH Patch  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-patches
On Mon, Apr 23, 2001 at 03:25:38PM -0400, Bruce Momjian wrote:
> > The above is due to the following:
> >
> >     $ export CDPATH=.:/home/jt:/home/jt/src:/home/jt/lib
> >     $ echo `cd parser/ && pwd`
> >     /home/jt/src/pgsql/src/backend/parser /home/jt/src/pgsql/src/backend/parser
>
> Basically, you are telling me that if there are two matching parser
> directories, pwd gets set to _both_ of them.  Sorry, I don't think we
> want to work around a bug like that, so we?

No, he's saying that bash is verbose when CDPATH is set, letting you
know what directory it's actually cding to when the CDPATH is used.
Apparently, this is not the sh behavior, so his patch silences the
spurious output from cd.

Ross

В списке pgsql-patches по дате отправления:

Предыдущее
От: Jason Tishler
Дата:
Сообщение: Re: src/backend/Makefile CDPATH Patch
Следующее
От: Fernando Nasser
Дата:
Сообщение: ANALYZE command