🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.sun
Article #11123

Re: determining the real directory when using automounts

#11123
From: Larry Blair
Date: Thu, 23 Feb 1989 10:22
17 lines
1250 bytes
ekrell@ulysses.att.com writes:
>In ksh, pwd is a builtin which returns the "logical" name of the current
>working directory, so if you "cd /foo/bar", pwd always returns "/foo/bar",
>even if you're in a different place as a consequence of following symbolic
>links or other such wierdness.

when I used csh, I used to have a "cwd", which just did a "echo $cwd".
That way I could get both the logical and physical current directory.
When I changed to ksh, I wanted to retain this functionality, so I put the
following in the .kshrc:

alias cwd='print - ~+'
unalias pwd

Now "pwd" and "cwd" work like they did for csh.
-- 
Larry Blair   ames!vsi1!lmb   lmb@vicom.com
Technical Details
Message-ID: <1486@vicom.COM>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!husc6!rice!sun-spots-request
References: <8902090049.AA21344@hector.homer.nj.att.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!husc6!rice!sun-spots-request
From: lmb@vicom.com (Larry Blair)
Newsgroups: comp.sys.sun
Subject: Re: determining the real directory when using automounts
Message-ID: <1486@vicom.COM>
Date: 23 Feb 89 10:22:32 GMT
References: <8902090049.AA21344@hector.homer.nj.att.com>
Sender: usenet@rice.edu
Organization: VICOM Systems Inc., San Jose, CA
Lines: 17
Approved: Sun-Spots@rice.edu
Original-Date: 14 Feb 89 17:35:21 GMT
X-Sun-Spots-Digest: Volume 7, Issue 168, message 4 of 10