From: Jarkko Hietaniemi Date: Thu, 6 Jun 2002 20:57:11 +0000 (+0000) Subject: Retract #16892 now that we have #17022. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=db28185901bfe308f53f975f7d61e927a5f806b5;p=p5sagit%2Fp5-mst-13.2.git Retract #16892 now that we have #17022. p4raw-id: //depot/perl@17050 --- diff --git a/lib/Cwd.pm b/lib/Cwd.pm index 24ad1e2..8b00543 100644 --- a/lib/Cwd.pm +++ b/lib/Cwd.pm @@ -196,11 +196,7 @@ $pwd_cmd ||= 'pwd'; # The 'natural and safe form' for UNIX (pwd may be setuid root) sub _backtick_pwd { - local $ENV{PATH}; - local $ENV{IFS}; - local $ENV{CDPATH}; - local $ENV{ENV}; - local $ENV{BASH_ENV}; + local @ENV{qw(PATH IFS CDPATH ENV BASH_ENV)}; my $cwd = `$pwd_cmd`; # Belt-and-suspenders in case someone said "undef $/". local $/ = "\n";