Double root folder vs single root folder

Posted by Tomas on Super User See other posts from Super User or by Tomas
Published on 2010-09-14T11:13:33Z Indexed on 2011/01/06 22:55 UTC
Read the original article Hit count: 402

Filed under:
|
|

On my Linux box, in bash, I have access to a "double root" folder denoted by two forward slashes:

tomas:~ $ cd /
tomas:/ $ ls
bin/ cdrom@ ...
tomas:/ $ cd //
tomas:// $ ls 
bin/ cdrom@ ...

The content of the folder and its subfolder is identical to the "normal" single slash root. The double slash does not go away when I access its subfolders. The annomaly does not repeat itself with three or more slashes; these are simple synonyms for the root:

tomas:// $ cd home/tomas
tomas://home/tomas $ cd ///
tomas:/ $ cd ////
tomas:/ $

What kindof place is it? Is it a bug? Can anyone explain the annomaly?

© Super User or respective owner

Related posts about linux

Related posts about bash