[email protected] <[email protected]> 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.

> 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.

-- 
Geoff Clare <[email protected]>
The Open Group, Apex Plaza, Forbury Road, Reading, RG1 1AX, England

Reply via email to