diff options
author | Steve Hay <SteveHay@planit.com> | 2006-11-28 16:43:17 +0000 |
---|---|---|
committer | Steve Hay <SteveHay@planit.com> | 2006-11-28 16:43:17 +0000 |
commit | 5c444d3e4e0d8388d89e329d49d5aa1eda0884a5 (patch) | |
tree | 32c5bb3f267f57467d664369b32faf6fdf357834 /lib/IPC | |
parent | a7d225ecf8799085a37ac5da254375f925b69d5f (diff) | |
download | perl-5c444d3e4e0d8388d89e329d49d5aa1eda0884a5.tar.gz |
Fix IPC-Cmd test failure on Win32: check current directory as well
as those listed in $ENV{PATH} when searching for binaries
p4raw-id: //depot/perl@29410
Diffstat (limited to 'lib/IPC')
-rw-r--r-- | lib/IPC/Cmd.pm | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/IPC/Cmd.pm b/lib/IPC/Cmd.pm index c941c76157..3e8e6d22da 100644 --- a/lib/IPC/Cmd.pm +++ b/lib/IPC/Cmd.pm @@ -13,7 +13,7 @@ BEGIN { $USE_IPC_RUN $USE_IPC_OPEN3 $WARN ]; - $VERSION = '0.36'; + $VERSION = '0.36_01'; $VERBOSE = 0; $DEBUG = 0; $WARN = 1; @@ -186,7 +186,9 @@ sub can_run { return MM->maybe_command($command); } else { - for my $dir (split /\Q$Config::Config{path_sep}\E/, $ENV{PATH}) { + for my $dir ((split /\Q$Config::Config{path_sep}\E/, $ENV{PATH}), + File::Spec->curdir() + ) { my $abs = File::Spec->catfile($dir, $command); return $abs if $abs = MM->maybe_command($abs); } |