automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bug with darwin and automake(aclocal)


From: Tim Van Holder
Subject: Re: Bug with darwin and automake(aclocal)
Date: 23 Aug 2001 10:33:45 +0200

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$





reply via email to

[Prev in Thread] Current Thread [Next in Thread]