A suggestion: .... == ../../..
Kenneth Kutz
kutz at bgsuvax.UUCP
Wed Apr 20 01:09:08 AEST 1988
In article <75 at vertical.oz>, greg at vertical.oz (Greg Bond) writes:
> Under Netware on PCs, the command
> cd ....\run
> is equivalent to
> cd ..\..\..\run
> but much easier to think and type.
> (NB: on DOS '\' is path specifier, not '/')
> This generalises: . = current dir, .. = parent dir, ... = grandparent etc.
> Do others like this? Has anyone done it? I would guess that the code
> is simple.
Modify mkdir.
This would seem to be only a matter of creating a third link (in addition
to the 2 that get created now "." and "..") which would be "..." for
grandparent etc. This would require extra directory entries for the
newly-created entries, one for each "parent" directory that exists.
Where do you stop though? All the way to the root directory?
There's nothing special about . and .. There just directory entries
with the same inode number (links) to another directory entry.
--
--------------------------------------------------------------------
Kenneth J. Kutz CSNET kutz at bgsu.edu
UUCP ...!osu-cis!bgsuvax!kutz
Disclaimer: Opinions expressed are my own and not of my employer's
--------------------------------------------------------------------
More information about the Comp.unix.wizards
mailing list