Skip site navigation (1) Skip section navigation (2)

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: (view raw, whole thread or download thread mbox)
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.


In response to

pgsql-patches by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group