Subject: | Clobbering %ENV variable 'PWD' (already fixed?) |
Devel::Cover clobbers the contents of the environment variable PWD.
Example using the attached "foo.pl" one-liner
this is using Windows shell:
Show quoted text
> set PWD=abcdefg
> foo.pl
$ENV{PWD}='abcdefg'
Show quoted text>perl -MDevel::Cover foo.pl 2>&1 1>:NUL
$ENV{PWD}=D:/home/yhluc00/bin/OvottCode/DataExtract
Seems to be fixed in 0.72? or is it because I'm using a different shell
here? From bash on a netBSD system:
$ PWD=abcde
$ perl foo.pl
$ENV{PWD}=abcde
$perl -MDevel::Cover foo.pl 2>&1 1>/dev/null
$ENV{PWD}=abcde
Changing the environment variables can make tests fail, when the tester
is meant to set them before running a test. I have a workaround for this
on the Windows system already and will try to install 0.72 instead of
0.65 there. Thanks for your time and effort.
Windows Server 2003, perl -v:
This is perl, v5.10.0 built for MSWin32-x64-multi-thread
(with 9 registered patches, see perl -V for more detail)
Copyright 1987-2007, Larry Wall
Binary build 1005 [290470] provided by ActiveState
http://www.ActiveState.com
Built May 24 2009 12:09:06
NetBSD perl -v:
This is perl, v5.10.1 (*) built for i386-netbsd
Copyright 1987-2009, Larry Wall
Subject: | foo.pl |
#!/usr/local/perl
warn '$ENV{PWD}=',$ENV{PWD},"\n";