[Toybox] Add remaining pwd options

Rob Landley rob at landley.net
Mon Dec 31 19:50:22 PST 2012


On 12/31/2012 10:39:18 AM, Felix Janda wrote:
> On 12/30/12 at 05:47pm, Rob Landley wrote:
> > On 12/30/2012 05:16:41 AM, Felix Janda wrote:
> > > On 12/30/12 at 04:43am, Rob Landley wrote:
> > > POSIX contains many surprises. In the section on environment
> > > variables it
> > > says that $PWD should be set if "pwd -P" was specified. What  
> happens
> > > if an
> > > error happens seems unspecified.
> 
> Sorry, this is wrong. It has been changed between SUSV4 and SUSV3.  
> Now pwd
> must not change $PWD. (It would be really nice to have SUSV4 man  
> pages...)

There are susv4 web pages which you can download and pull up with  
"links" or similar if it really bothers you.

Trying to beat sane behavior out of bash is not a fruitful endeavor:

   cd
   mkdir missing
   cd missing
   rmdir ../missing
   pwd -P
   cd ..
   ls
   echo $PWD

I'm not copying that behavior.

Rob
 1357012222.0


More information about the Toybox mailing list