home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!olivea!decwrl!bu.edu!transfer!redondo.sw.stratus.com!dswartz
- From: dswartz@redondo.sw.stratus.com (Dan Swartzendruber)
- Newsgroups: comp.unix.aux
- Subject: ksh weirdness
- Message-ID: <5285@transfer.stratus.com>
- Date: 30 Jul 92 21:31:59 GMT
- Sender: usenet@transfer.stratus.com
- Organization: Stratus Computer, Software Engineering
- Lines: 15
-
-
- I just finished tracking down a weird "feature" in ksh. Basically, if
- you cd to a directory with one or more symlinks as components, the pwd
- command in ksh reports the current directory based on what you typed,
- not where you actually are. Example:
-
- in /usr, local is a symlink to /users/local
-
- so when I type "cd /usr/local/src", followed by "pwd", I get told
- /usr/local/src, not /users/local/src. Note that csh and sh do the
- expected thing (well, expected by me anyway.)
-
- --
-
- Dan S.
-