home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: gnu.bash.bug
- Path: sparky!uunet!cis.ohio-state.edu!odin.ins.cwru.edu!chet
- From: chet@odin.ins.cwru.edu (Chet Ramey)
- Subject: Re: .. in $PWD: bug or feature?
- Message-ID: <1992Aug11.172255.18237@usenet.ins.cwru.edu>
- Sender: gnulists@ai.mit.edu
- Organization: Case Western Reserve University, Cleveland, OH (USA)
- References: <MITCH.92Aug10141637@mira.clsi>
- Distribution: gnu
- Date: Tue, 11 Aug 1992 17:22:55 GMT
- Approved: bug-bash@prep.ai.mit.edu
- Lines: 31
-
- In article <MITCH.92Aug10141637@mira.clsi> mitch@clsi.UUCP (Mitchell N. Perilstein) writes:
- >Forgive me if this is part of the old getwd() problem but,
- >
- > bash$ cd /usr/local/..
- > bash$ builtin pwd
- > /usr
- > bash$ /bin/pwd
- > /usr
- > bash$ echo $PWD
- > /usr/local/..
- >
- >When should `pwd` differ from $PWD? Users who have \W in their PS1 might
- >find this annoying.
-
- This is fixed in 1.13, which performs canonicalization on $PWD.
-
- odin(3)$ cd /usr/local/..
- odin(3)$ builtin pwd
- /usr
- odin(3)$ /bin/pwd
- /usr
- odin(3)$ echo $PWD
- /usr
-
- Chet
- --
- ``The use of history as therapy means the corruption of history as history.''
- -- Arthur Schlesinger
-
- Chet Ramey, Case Western Reserve University Internet: chet@po.CWRU.Edu
-
-