New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
qx() problems with local environment variables on Cygwin/Perl 5.8.2 #7448
Comments
From @smpetersThis problem originally occured while running tests for installing The problem is that an local environment variable set in an anonymous block test1.pl #!/usr/bin/perl -w use warnings; my $key = "WANGO"; BLOCK1: { BLOCK2: { my $val = $ENV{$key}; BLOCK3: { =cut test2.pl #!/usr/bin/perl -w use strict; =cut My results on Cygwin are... In BLOCK1, $ENV{WANGO} = [undef] On Linux (Perl 5.8.4 on Gentoo with a 2.4.26 kernel), Win32 (ActiveState Build Adding an "$ENV{WANGO} = undef;" to the end of BLOCK2 seems to take care of Regards, Steve Peters |
From @petdanceThis problem is causing problems with t/prove-switches.t in Test::Harness. |
From fluffy@sixears.co.ukOn Thu, Aug 05, 2004 at 03:26:34AM -0000, Steve Peters wrote:
I tried the supplied scripts, but didn't get the results you describe. Please retry them in a separate session; I have to imagine that you have Mx. |
The RT System itself - Status changed from 'new' to 'open' |
From @smpeters
As far as I know, I don't have an environment variable called "WANGO" in my Steve Peters |
From @smpeters
OK, I tried it on my Windows XP box and it worked just fine. It must be the Steve Peters |
From guest@guest.guest.xxxxxxxxBug still present on perl 5.8.7 cygwin-thread-multi-64int / nt4 $ perl test.pl I'll report at the cygwin list |
From @smpeters
The problem was with Perl's handling of environment variables when Perl steve@redshirt ~/perl-current |
@smpeters - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#30952 (status was 'resolved')
Searchable as RT30952$
The text was updated successfully, but these errors were encountered: