/-happy
Tom Christiansen
tchrist at convex.COM
Fri Aug 17 12:07:05 AEST 1990
In article <1990Aug16.215045.21300 at iwarp.intel.com> merlyn at iwarp.intel.com (Randal Schwartz) writes:
>| Explain why '/////' is valid in the following statement:
>| cd /./../tmp/////../././bin
>
>The null pathname (look carefully between the consecutive "/"-s, and
>you'll see them there) is a valid synonym for the "current directory".
Well, only until POSIX, after which a null pathname "" is considered an
error and NOT to be a valid synonym for ".". However, this case continues
to work because adjacent /'s are to be collapsed in the kernel's path-to-
inode routine (possibly lookuppn() or namei() depending on UNIX flavor).
--tom
--
"UNIX was never designed to keep people from doing stupid things, because
that policy would also keep them from doing clever things." [Doug Gwyn]
More information about the Comp.unix.questions
mailing list