Thanks for taking the time for tracking down my "bug"- On Thu, Mar 7, 2013 at 5:38 PM, Paul Johnson <p...@pjcj.net> wrote: > ...$ENV{PWD} on Windows being set within Devel::Cover. > ... I'd appreciate comments on whether or not this is a bug, but if it > is then it should be filed against the perl core.
I was the original reporter and I did open a new ticket against path tools regarding it, after seeing your comments. The module docs for Cwd state: If you ask to override your chdir() built-in function, use Cwd qw(chdir); then your PWD environment variable will be kept up to date. Note that it will only be kept up to date if all packages which use chdir import it from Cwd. My reading of that is PWD should only be "clobbered" when code uses Cwd::chdir. Cwd::getcwd is not documented as clobbering PWD. After posting the ticket, I found that FindBin also clobbers PWD, presumably also because of its use of Cwd. One could argue that adding to the docs will fix the issue, but I was not too pleased to find our code's "password" env var PWD mysteriously changing. -y