alias to link cd to pwd

Brian V. Smith envbvs at epb2.lbl.gov
Sat Jun 10 06:56:01 AEST 1989


In article <TALE.89Jun9140925 at imagine.pawl.rpi.edu>, tale at pawl.rpi.edu (David C Lawrence) writes:
> In <2801 at helios.ee.lbl.gov> envbvs at 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 at 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!



More information about the Comp.unix.questions mailing list