Mail Archives: djgpp/2001/06/27/14:38:18
Eli Zaretskii <eliz AT is DOT elta DOT co DOT il> wrote:
> On 26 Jun 2001, Lee Merrill wrote:
>
>> I had the same problem on Linux, and it was my CDPATH, after I set
>> "CDPATH=:$CDPATH" it configured fine.
>
> Did your original CDPATH also lack the "." directory?
>
> I can't imagine people could do that in their CDPATH, since if they
> do, "cd foo" cannot chdir into a subdirectory `foo' of the current
> directory.
True only if there is a "foo'' subdirectory within a directory in CDPATH.
If "." isn't included in CDPATH cd acts as if "." were the last entry.
Apparently it's better to just undefine CDPATH when compiling just to be on
the safe side:
http://mail.gnu.org/pipermail/bug-libtool/1998-May/000933.html
http://sources.redhat.com/ml/bug-automake/1999/msg00124.html
http://www.mail-archive.com/bug-fileutils AT gnu DOT org/msg00807.html
(bash) $ export CDPATH=.:$HOME
(bash) $ cd /tmp
(bash) $ mkdir foo
(bash) $ here=`cd foo && pwd`
(bash) $ echo $here
This will cause bash to print the directory name twice. If CDPATH is set,
bash echoes the directory name.
--
386
clc FAQ:
http://www.eskimo.com/~scs/C-faq/top.html
- Raw text -