wierd, just curious
just messing around, i typed:
cd // it appears i am in some directory // if i 'ls' this directory it is the root directory anyone know about this is it a bug? |
Not a bug.
I do not recall where to find the refs at the moment, but in Unixland multiple /'s in paths are treated as a single / by the kernel/shell/filesystem. So when you cd // it collapses those to cd / for filesystem use, but the environment variable that records the current directory remembers it as you typed it, //. So you are in the // directory which is exactly the same as /. Hope that made sense. *** UPDATE *** A quick search found this as part of the Single Unix Specification: Quote:
|
All times are GMT -5. The time now is 04:56 PM. |