Path: utzoo!mnetor!uunet!husc6!mailrus!tut.cis.ohio-state.edu!bgsuvax!kutz From: kutz@bgsuvax.UUCP (Kenneth Kutz) Newsgroups: comp.unix.wizards Subject: Re: A suggestion: .... == ../../.. Message-ID: <1934@bgsuvax.UUCP> Date: 19 Apr 88 15:09:08 GMT References: <75@vertical.oz> Organization: Bowling Green State University B.G., Oh. Lines: 32 In article <75@vertical.oz>, greg@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@bgsu.edu UUCP ...!osu-cis!bgsuvax!kutz Disclaimer: Opinions expressed are my own and not of my employer's --------------------------------------------------------------------