summaryrefslogtreecommitdiff
path: root/lib/Cwd.pm
diff options
context:
space:
mode:
authorNorton T. Allen <allen@huarp.harvard.edu>2002-01-02 09:19:42 -0500
committerAbhijit Menon-Sen <ams@wiw.org>2002-01-02 18:12:31 +0000
commit35b807ef3d5d20fcb1e7afd29ca7ede8931d5a85 (patch)
tree3222c52f5eef44ed85316758416214587db43f48 /lib/Cwd.pm
parent364daeac4868b98a1fa3ae76f6024a86f1be49bd (diff)
downloadperl-35b807ef3d5d20fcb1e7afd29ca7ede8931d5a85.tar.gz
PATCH: lib/Cwd.pm for QNX4
Message-Id: <200201021919.OAA18012@bottesini.harvard.edu> p4raw-id: //depot/perl@14023
Diffstat (limited to 'lib/Cwd.pm')
-rw-r--r--lib/Cwd.pm6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/Cwd.pm b/lib/Cwd.pm
index d86527f9e0..63a14fdcbc 100644
--- a/lib/Cwd.pm
+++ b/lib/Cwd.pm
@@ -466,12 +466,18 @@ sub _dos_cwd {
}
sub _qnx_cwd {
+ local $ENV{PATH} = '';
+ local $ENV{CDPATH} = '';
+ local $ENV{ENV} = '';
$ENV{'PWD'} = `/usr/bin/fullpath -t`;
chop $ENV{'PWD'};
return $ENV{'PWD'};
}
sub _qnx_abs_path {
+ local $ENV{PATH} = '';
+ local $ENV{CDPATH} = '';
+ local $ENV{ENV} = '';
my $path = @_ ? shift : '.';
my $realpath=`/usr/bin/fullpath -t $path`;
chop $realpath;