23 May
2006
23 May
'06
8:27 a.m.
Previously Tres Seaver wrote:
Zope2 uses them at the beginning of a path to indicate traversal from the root. -1 to dropping that case (it is the one which makes '/foo/bar' behave orthagonally). Havinng blank elements work as no-ops also makes them behave predictably: this is what command shells (sane ones, anyway) do with them. E.g.:
$ ls /path/to//foo
yiels the same results as:
$ ls /path/to/foo
That actually does not need to be true and POSIX does not dictate that. There have been some discussions to use // as a marker for a different kind of traversal for some filesystems. Wichert. -- Wichert Akkerman <wichert@wiggy.net> It is simple to make things. http://www.wiggy.net/ It is hard to make things simple.