home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / unix / aux / 3028 < prev    next >
Encoding:
Internet Message Format  |  1992-07-30  |  845 b 

  1. Path: sparky!uunet!olivea!decwrl!bu.edu!transfer!redondo.sw.stratus.com!dswartz
  2. From: dswartz@redondo.sw.stratus.com (Dan Swartzendruber)
  3. Newsgroups: comp.unix.aux
  4. Subject: ksh weirdness
  5. Message-ID: <5285@transfer.stratus.com>
  6. Date: 30 Jul 92 21:31:59 GMT
  7. Sender: usenet@transfer.stratus.com
  8. Organization: Stratus Computer, Software Engineering
  9. Lines: 15
  10.  
  11.  
  12. I just finished tracking down a weird "feature" in ksh.  Basically, if
  13. you cd to a directory with one or more symlinks as components, the pwd
  14. command in ksh reports the current directory based on what you typed,
  15. not where you actually are.  Example:
  16.  
  17. in /usr, local is a symlink to /users/local
  18.  
  19. so when I type "cd /usr/local/src", followed by "pwd", I get told
  20. /usr/local/src, not /users/local/src.  Note that csh and sh do the
  21. expected thing (well, expected by me anyway.)
  22.  
  23. -- 
  24.  
  25. Dan S.
  26.