summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dist/PathTools/Cwd.pm3
1 files changed, 1 insertions, 2 deletions
diff --git a/dist/PathTools/Cwd.pm b/dist/PathTools/Cwd.pm
index 58211ef8ec..5e4b674150 100644
--- a/dist/PathTools/Cwd.pm
+++ b/dist/PathTools/Cwd.pm
@@ -199,8 +199,7 @@ sub _backtick_pwd {
# executable, but it will blow up anyway under taint. We could set it to
# anything absolute. Perhaps "/" would be better.
local $ENV{PATH}= "/usr/bin"
- if $^O ne "vms" and $^O ne "amigaos";
- local $ENV{PATH} if $^O eq "vms";
+ if $^O ne "amigaos";
my $cwd = `$pwd_cmd`;
# Belt-and-suspenders in case someone said "undef $/".