summaryrefslogtreecommitdiff
path: root/configpm
diff options
context:
space:
mode:
authorReini Urban <rurban@x-ray.at>2011-02-26 13:55:41 +0100
committerFather Chrysostomos <sprout@cpan.org>2011-02-26 10:15:23 -0800
commit542f72439b96cee2ffeb944ed4d6710d4396f529 (patch)
treede27dde523f7cca0ca14891c37fd08ce17b1baa6 /configpm
parent8f878375c44ca8966a9b6ee166fd9d10f631a68b (diff)
downloadperl-542f72439b96cee2ffeb944ed4d6710d4396f529.tar.gz
Modern cygwin often has empty $ENV{CYGWIN}
Fixes Use of uninitialized value $ENV{"CYGWIN"} in concatenation (.) or string at /usr/lib/perl5/5.13.10/i686-cygwin/Config_heavy.pl line 54
Diffstat (limited to 'configpm')
-rwxr-xr-xconfigpm2
1 files changed, 1 insertions, 1 deletions
diff --git a/configpm b/configpm
index 3427f36c22..7d6de3721e 100755
--- a/configpm
+++ b/configpm
@@ -203,7 +203,7 @@ sub _V {
print " $date\n" if defined $date;
my @env = map { "$_=\"$ENV{$_}\"" } sort grep {/^PERL/} keys %ENV;
- push @env, "CYGWIN=\"$ENV{CYGWIN}\"" if $^O eq 'cygwin';
+ push @env, "CYGWIN=\"$ENV{CYGWIN}\"" if $^O eq 'cygwin' and $ENV{CYGWIN};
if (@env) {
print " \%ENV:\n";