You're seeing the shell's (not quite so intelligent) caching of the current directory. If you actually called getcwd(), the system call, it would return "/".
Originally Posted by jeffcobb
UNIX path parsing treats multiple slashes as a single slash. You should be in the root dir.
EDIT: Hmm. Maybe there's more to it. When I "cd //" I see the same thing you are seeing. But "cd ///" takes me to plain old "/". Not sure now!
Here's what Python says:
Python uses the real getcwd() call, so I think it really is just "/" and you're seeing some shell funniness.
scott@VM-Kubuntu-1:~$ cd //
Python 2.6.5 (r265:79063, Apr 16 2010, 13:57:41)
[GCC 4.4.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> print os.getcwd()