/-happy
Randal Schwartz
merlyn at iwarp.intel.com
Fri Aug 17 07:50:45 AEST 1990
In article <3139 at dftsrv.gsfc.nasa.gov>, merritt at iris613 (John H Merritt) writes:
| Explain why '/////' is valid in the following statement:
|
| cd /./../tmp/////../././bin
|
| It is interesting that any permutation of '.', '..', '/' and directory
| names can be used with, at least, csh, sh, and tcsh to yield a valid
| path name.
The null pathname (look carefully between the consecutive "/"-s, and
you'll see them there) is a valid synonym for the "current directory".
So aaa////bbb is the same as aaa/././././bbb, except that you don't
have to stat "." four additional times (it'd be fast, but it still
takes time).
Just another Unix hacker,
--
/=Randal L. Schwartz, Stonehenge Consulting Services (503)777-0095 ==========\
| on contract to Intel's iWarp project, Beaverton, Oregon, USA, Sol III |
| merlyn at iwarp.intel.com ...!any-MX-mailer-like-uunet!iwarp.intel.com!merlyn |
\=Cute Quote: "Welcome to Portland, Oregon, home of the California Raisins!"=/
More information about the Comp.unix.questions
mailing list