Re: src/backend/Makefile CDPATH Patch

From: "Ross J(dot) Reedstrom" <reedstrm(at)rice(dot)edu>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: Jason Tishler <Jason(dot)Tishler(at)dothill(dot)com>, Pgsql-Patches <pgsql-patches(at)postgresql(dot)org>
Subject: Re: src/backend/Makefile CDPATH Patch
Date: 2001-04-23 21:47:03
Message-ID: 20010423164703.B20734@rice.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-patches by date

  From Date Subject
Next Message Fernando Nasser 2001-04-24 18:02:54 ANALYZE command
Previous Message Jason Tishler 2001-04-23 20:41:13 Re: src/backend/Makefile CDPATH Patch