bug-bash
[Top][All Lists]
Advanced

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

Re: cd // && pwd shows "//"


From: Doug Kearns
Subject: Re: cd // && pwd shows "//"
Date: Fri, 7 Sep 2001 13:49:29 +1000
User-agent: Mutt/1.2.5i

On Thu, Sep 06, 2001 at 10:02:49PM -0500, Andy Goth wrote:
> Configuration Information [Automatically generated, do not change]:
> Machine: i686
> OS: linux-gnu
> Compiler: gcc
> Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='i686' 
> -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i686-pc-linux-gnu' 
> -DCONF_VENDOR='pc' -DSHELL -DHAVE_CONFIG_H  -D_FILE_OFFSET_BITS=64  -I.  -I. 
> -I./include -I./lib -I/usr/include -O9 -march=i686 -mcpu=i686
> uname output: Linux merlin 2.4.2 #1 Sun Mar 11 00:20:54 CST 2001 i686 unknown
> Machine Type: i686-pc-linux-gnu
> 
> Bash Version: 2.05
> Patch Level: 0
> Release Status: release
> 
> Description:
>       cd // && pwd yields "//".  This is weird because cd /// && pwd
>       shows simply "/".  *shrug*  I know this is minor, but it could
>       be indicative of another problem.
> 
> Repeat-By:
>       cd // && pwd
 
Apparently POSIX requires that // at the start of a pathname should be
respected.

It might be time to add this to the FAQ ?

Regards,
Doug



reply via email to

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