home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / gnu / bash / bug / 542 < prev    next >
Encoding:
Text File  |  1992-08-12  |  1.2 KB  |  45 lines

  1. Newsgroups: gnu.bash.bug
  2. Path: sparky!uunet!cis.ohio-state.edu!odin.ins.cwru.edu!chet
  3. From: chet@odin.ins.cwru.edu (Chet Ramey)
  4. Subject: Re: .. in $PWD: bug or feature?
  5. Message-ID: <1992Aug11.172255.18237@usenet.ins.cwru.edu>
  6. Sender: gnulists@ai.mit.edu
  7. Organization: Case Western Reserve University, Cleveland, OH (USA)
  8. References: <MITCH.92Aug10141637@mira.clsi>
  9. Distribution: gnu
  10. Date: Tue, 11 Aug 1992 17:22:55 GMT
  11. Approved: bug-bash@prep.ai.mit.edu
  12. Lines: 31
  13.  
  14. In article <MITCH.92Aug10141637@mira.clsi> mitch@clsi.UUCP (Mitchell N. Perilstein) writes:
  15. >Forgive me if this is part of the old getwd() problem but,
  16. >
  17. >  bash$ cd /usr/local/..
  18. >  bash$ builtin pwd
  19. >  /usr
  20. >  bash$ /bin/pwd
  21. >  /usr
  22. >  bash$ echo $PWD
  23. >  /usr/local/..
  24. >
  25. >When should `pwd` differ from $PWD? Users who have \W in their PS1 might
  26. >find this annoying. 
  27.  
  28. This is fixed in 1.13, which performs canonicalization on $PWD.
  29.  
  30. odin(3)$ cd /usr/local/..
  31. odin(3)$ builtin pwd
  32. /usr
  33. odin(3)$ /bin/pwd
  34. /usr
  35. odin(3)$ echo $PWD
  36. /usr
  37.  
  38. Chet
  39. -- 
  40. ``The use of history as therapy means the corruption of history as history.''
  41.     -- Arthur Schlesinger
  42.  
  43. Chet Ramey, Case Western Reserve University    Internet: chet@po.CWRU.Edu
  44.  
  45.