>casper....@oracle.com <casper....@oracle.com> wrote, on 14 Apr 2020: >> >> It does seems to allow: >> >> (cd /; PWD=////////// pwd -L) >> ////////// >> and >> (cd /home/casper; PWD=/home///////casper pwd -L) >> /home///////casper >> >> >> Is this a correct implmentation? > >Yes.
Thanks. >> Is it *required* for the implementation to behave this way? > >No. See the description of PWD under "ENVIRONMENT VARIABLES" on >the pwd page: > > If an application sets or unsets the value of PWD, the behavior of > pwd is unspecified. But if the application sets it to these values and these are proper absolute pathnames of the current working directory, then that is the value we need to print? Casper