change dir to //
robatino at fedoraproject.org
Sun Jan 16 23:38:43 UTC 2011
Andre Robatino <robatino <at> fedoraproject.org> writes:
> Good question - a directory listing shows it's in /, as expected, but $PWD is
> wrong, and only when there are exactly 2 /'s. The same thing happens in F13,
> F14, and Rawhide. It only happens in sh/bash, and not in csh/tcsh, ksh, or zsh.
More generally, it happens for anything like "//usr/bin" as well - you end up in
the expected directory, but "echo $PWD" shows the double slash.
More information about the test