Re: Why bash command "cd //" set path "//" ?

2011-08-26 Thread Bob Proulx
Andrey Demykin wrote: > Why bash command "cd //" set path "//" ? > > double slashes only in first position > > I found this in all version of the bash. > Excuse me , if it is not a bug. > Possibly it is a feature. It is a feature. In the old days of the Apollo OS two leading slashes identified

Re: Why bash command "cd //" set path "//" ?

2011-08-26 Thread Eric Blake
On 08/26/2011 04:38 AM, Andrey Demykin wrote: Why bash command "cd //" set path "//" ? Because POSIX says that implementations may (but not must) treat // specially. And rather than special case just the implementations that do treat it specially (such as cygwin), bash globally respects // o

Why bash command "cd //" set path "//" ?

2011-08-26 Thread Andrey Demykin
Why bash command "cd //" set path "//" ? double slashes only in first position I found this in all version of the bash. Excuse me , if it is not a bug. Possibly it is a feature. I noticed it by accident. --- andrus@and-lnv:/$ cd /