X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=p5sagit%2Flocal-lib.git;a=blobdiff_plain;f=lib%2Flocal%2Flib.pm;h=7ceb9931deebd4340decafb3e623b36054764684;hp=cd058f1bb5964090a53c92e059ecbdb780a44513;hb=f58534b14f1482466a4cf474d80f7c9e331b7c86;hpb=e9227729ee8aebe46ebfb26f3daed2a0c4899c9f diff --git a/lib/local/lib.pm b/lib/local/lib.pm index cd058f1..7ceb993 100644 --- a/lib/local/lib.pm +++ b/lib/local/lib.pm @@ -11,7 +11,7 @@ use File::Path (); use Carp (); use Config; -our $VERSION = '1.004003'; # 1.4.3 +our $VERSION = '1.004004'; # 1.4.4 sub import { my ($class, @args) = @_; @@ -272,8 +272,8 @@ sub print_environment_vars_for { } }; - # Win32 uses this variable. - if (defined $ENV{'COMSPEC'}) { + # Both Win32 and Cygwin have $ENV{COMSPEC} set. + if (defined $ENV{'COMSPEC'} && $^O ne 'cygwin') { my @shell_bin_path_parts = File::Spec->splitpath($ENV{'COMSPEC'}); $shellbin = $shell_bin_path_parts[-1]; $shelltype = do {