interesting behaviour (2.1.56)

Michael Driscoll (fenris@frob.ml.org)
Sun, 21 Sep 1997 23:33:12 -0600


I just noticed some strange behaviour on my system.

If I type 'cd /', then I end up in /, nothing strange here.
If I type 'cd ///' then I end up in /, nothing strange here.
However, if I type 'cd //' then I end up in /, but everything
(such as 'pwd') thinks I'm in the directory //.

I did some more fooling around and realized I could also
cd to directories //tmp, //home/fenris, etc. But more than two
leading slashes are collapsed. Non-leading slashes are always
properly collapsed.

Could this be a special case that is handled wrong in the new
fs code I've heard so much about?

The root partition is ext2, btw.

Linux ulfheim.frob.ml.org 2.1.56 #1 Sat Sep 20 16:17:34 MDT 1997 i586 unknown

Mike

-- 
---.-- Thinking of Maud you forget everything else.--More--
|{....  Michael Driscoll, student of engineering
|.d.@|  <fenris@frob.ml.org>
------  <mdriscol@mines.edu>            http://frob.ml.org/