[Gllug] Filesystem root directory oddity
John Winters
john at sinodun.org.uk
Tue Mar 17 17:52:22 UTC 2009
Richard Huxton wrote:
> $ cd /; pwd; cd //; pwd; cd ///; pwd cd ////; pwd
> /
> //
> /
> /
If you invoke /bin/pwd instead of the in-built pwd you get a correct
location of "/" for every case. AFAICR the shell's in-built pwd uses a
sort of "remember where you last moved to" strategy to produce its
results. It looks to me like you might have tickled a small bug in your
shell.
John
--
Gllug mailing list - Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug
More information about the GLLUG
mailing list