Jörg W Mittag:
The filesystem namespace beginning with '//' is reserved by POSIX as
an implementation defined namespace that is totally seperate from the
POSIX filesystem namespace beginning with '/'. "Implementation
defined" of course means, that any implementation can behave anyway it
likes in this namespace or -- to say it simple -- inside this
namespace you never know what's gonna happen. So, the behaviour of
Bash is neither right nor wrong, it's just what the Bash implementors
thought made sense. And I think they're right. Stripping one slash
would be wrong, because you cannot silently jump from one namespace to
another. However, doing something weird wouldn't be exactly helpful
either. So, pretending you were in the POSIX namespace but not
actually leaving the implementation defined namespace is exactly the
right thing to do.
Bookmarks