diff options
author | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2004-01-04 20:45:31 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2004-01-04 20:45:31 +0000 |
commit | 889f7a4f8452140cca0c6ad9df71017733139f90 (patch) | |
tree | dfd28278bc18d317ec655b746acd6704cf9181fa /lib/Cwd.pm | |
parent | c5ee2135734475fb187b41accfd390dc0b6d8a97 (diff) | |
download | perl-889f7a4f8452140cca0c6ad9df71017733139f90.tar.gz |
Upgrade to Cwd 2.13
p4raw-id: //depot/perl@22056
Diffstat (limited to 'lib/Cwd.pm')
-rw-r--r-- | lib/Cwd.pm | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/lib/Cwd.pm b/lib/Cwd.pm index 51ca5b6f54..9ad42e77e5 100644 --- a/lib/Cwd.pm +++ b/lib/Cwd.pm @@ -139,7 +139,7 @@ use strict; use Exporter; use vars qw($VERSION @ISA @EXPORT @EXPORT_OK); -$VERSION = '2.12'; +$VERSION = '2.13'; @ISA = qw/ Exporter /; @EXPORT = qw(cwd getcwd fastcwd fastgetcwd); @@ -178,21 +178,21 @@ eval { # are safe. This prevents _backtick_pwd() consulting $ENV{PATH} # so everything works under taint mode. my $pwd_cmd; -foreach my $try (qw(/bin/pwd /usr/bin/pwd)) { +foreach my $try ('/bin/pwd', + '/usr/bin/pwd', + '/QOpenSys/bin/pwd', # OS/400 PASE. + ) { + if( -x $try ) { $pwd_cmd = $try; last; } } unless ($pwd_cmd) { - if (-x '/QOpenSys/bin/pwd') { # OS/400 PASE. - $pwd_cmd = '/QOpenSys/bin/pwd' ; - } else { - # Isn't this wrong? _backtick_pwd() will fail if somenone has - # pwd in their path but it is not /bin/pwd or /usr/bin/pwd? - # See [perl #16774]. --jhi - $pwd_cmd = 'pwd'; - } + # Isn't this wrong? _backtick_pwd() will fail if somenone has + # pwd in their path but it is not /bin/pwd or /usr/bin/pwd? + # See [perl #16774]. --jhi + $pwd_cmd = 'pwd'; } # Lazy-load Carp |