NAME

16-chdir-builtin.t - pwd() after a builtin chdir leaves $PWD stale

DESCRIPTION

A builtin chdir does not update $ENV{ PWD }. After a chdir into a one-time directory, pwd() must detect that $PWD no longer matches the inode of '.', and return getcwd instead of the stale $PWD, with one warning.

Skipped on MSWin32 and VMS, where pwd() does not use $PWD.

SEE ALSO

FindBin::Bin, 17-chdir-cwd.t