Path: utzoo!attcan!uunet!aplcen!samsung!emory!cambridge.apple.com!bloom-beacon!eru!luth!sunic!mcsun!ukc!edcastle!aiai!richard From: richard@aiai.ed.ac.uk (Richard Tobin) Newsgroups: comp.unix.questions Subject: Re: Symlinks and .. Message-ID: <1389@skye.ed.ac.uk> Date: 21 Nov 89 18:39:24 GMT References: <2755@munnari.oz.au> <12407@ulysses.homer.nj.att.com> Reply-To: richard@aiai.UUCP (Richard Tobin) Organization: AIAI, University of Edinburgh, Scotland Lines: 22 In article <12407@ulysses.homer.nj.att.com> ekrell@hector.UUCP (Eduardo Krell) writes: >".." should be treated as a logical operator that moves you one level >closer to the root by stripping the last component off your current >working directory (which is whatever path you used to get to where >you are). This preserves the "/usr/foo/bar/.. == /usr/foo" paradigm. Well, that's a nice paradigm to preserve, but another one is that a directory should be the same however you got there. Sometimes you want one, sometimes the other. (Of course, this isn't a problem of symbolic links per se; hard links would have the same problem but making hard links to directories is "discouraged"). I think it's a bad idea for shells (or whatever) to treat ".." as something special. It would be better to use a new name ("..." perhaps?). -- Richard -- Richard Tobin, JANET: R.Tobin@uk.ac.ed AI Applications Institute, ARPA: R.Tobin%uk.ac.ed@nsfnet-relay.ac.uk Edinburgh University. UUCP: ...!ukc!ed.ac.uk!R.Tobin