/-happy

Jeff Beadles jeff at onion.pdx.com
Tue Aug 21 08:06:26 AEST 1990


merlyn at iwarp.intel.com (Randal Schwartz) writes:
|>
|>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!"=/


Not true.  (At least in 4.2BSD, and I'm too lazy to check SysV 3.2... :-)
Here's a small snippit of code from sys/ufs_nami.c

        ...
        if (*cp == '/') {
                while (*cp == '/')
                        cp++;
        ...


Thus, the multiple '/' 's are just ignored.

        -Jeff
--
Jeff Beadles  jeff at onion.pdx.com  jeff at quark.wv.tek.com



More information about the Comp.unix.questions mailing list