Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!leah!rpi!rpi.edu!tale From: tale@pawl.rpi.edu (David C Lawrence) Newsgroups: comp.unix.questions Subject: Re: alias to link cd to pwd Message-ID: Date: 9 Jun 89 18:09:25 GMT References: <307@ohs.UUCP> <3710@tank.uchicago.edu> <2801@helios.ee.lbl.gov> Sender: usenet@rpi.edu Reply-To: tale@pawl.rpi.edu Lines: 22 In-reply-to: envbvs@epb2.lbl.gov's message of 9 Jun 89 17:29:40 GMT In <2801@helios.ee.lbl.gov> envbvs@epb2.lbl.gov (Brian V. Smith) writes: > The trouble with the $cwd variable is that it doesn't know anything > about symbolic links (at least on Ultrix, SunOs 3.5, Sunos 4.0.1 or > 4.2BSD). So, if you cd to /usr/adm (for example) on a system where > that is really a symlink to /usr/var/adm, $cwd will be equal to > "/usr/adm", when the path is really "/usr/var/adm." % set hardpaths This works on all cshs that know about the hardpaths variable, among them the csh that comes with SunOS. It also applies to pushed directories listed with "dirs". Some people like the fact that the name of the symlink is used rather than the hardpath. I don't, but since it can be done either way, so what? Dave -- (setq mail '("tale@pawl.rpi.edu" "tale@itsgw.rpi.edu" "tale@rpitsmts.bitnet")) "I realize the Internet isn't the whole world, but it is the center of it." -- Greg Woods