delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/06/27/14:38:18

From: 386sx <386sx AT my-deja DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Building gdb 5.0
Date: 27 Jun 2001 18:00:17 GMT
Organization: not a chance
Lines: 37
Message-ID: <Xns90CD8E76B7A73Xx386xX@130.133.1.4>
References: <Pine DOT SUN DOT 3 DOT 91 DOT 1010627175927 DOT 1111H-100000 AT is>
NNTP-Posting-Host: asoh2pp12.alltel.net (166.102.93.13)
X-Trace: fu-berlin.de 993664817 13709254 166.102.93.13 (16 [33304])
User-Agent: Xnews/4.06.22
X-Hobbies: X-Pickup-Sticks, X-Polo-Wrestling
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019