This is the mail archive of the automake@gnu.org mailing list for the automake project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Bug with darwin and automake(aclocal)


On 23 Aug 2001 10:14:01 +0200, Erik Lindahl wrote:
> On 22 Aug 2001, Tom Tromey wrote:
> 
> It's not really a bug either; the problem is that zsh returns
> the name of the new directory when you execute 'cd'. Thus,

Ah - a memory dawns.

> 
> `CDPATH=:; cd $somedir && pwd`
> 
> to
> 
> `CDPATH=:; cd $somedir > /dev/null && pwd`

Actually, that's a workaround and not a fix.  From what I remember from
the autoconf list, zsh does this if CDPATH is set to ':'.
That's why autoconf tries to unset CDPATH, and only sets it to ':' if
that fails.

bash-2.04$ pwd
/home/tim
bash-2.04$ mkdir foo
bash-2.04$ zsh
bender% echo $CDPATH

bender% cd foo
bender% cd ..
bender% export CDPATH=nothing
bender% echo $CDPATH
nothing
bender% cd foo
bender% cd ..
bender% export CDPATH=:
bender% echo $CDPATH
:
bender% cd foo
~/foo
bender% cd ..
bender% exit
bash-2.04$




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]