Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!pasteur!helios.ee.lbl.gov!epb2.lbl.gov!envbvs From: envbvs@epb2.lbl.gov (Brian V. Smith) Newsgroups: comp.unix.questions Subject: Re: alias to link cd to pwd Message-ID: <2802@helios.ee.lbl.gov> Date: 9 Jun 89 20:56:01 GMT References: <307@ohs.UUCP> <3710@tank.uchicago.edu> <2801@helios.ee.lbl.gov> Sender: usenet@helios.ee.lbl.gov Lines: 54 In article , tale@pawl.rpi.edu (David C Lawrence) writes: > In <2801@helios.ee.lbl.gov> envbvs@epb2.lbl.gov, I wrote: > > 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? You are right. This works on SunOs systems. Unfortunately, DEC is still behind the times and it doesn't work on Ultrix (3.0) _____________________________________ Brian V. Smith (bvsmith@lbl.gov) Lawrence Berkeley Laboratory We don't need no signatures! This is a trailer so that xrn will post this even though I have less text than the included text. I have to fix that!