local $/ = "\n";
Jeff Pinyan [Mon, 24 Sep 2001 00:22:32 +0000 (20:22 -0400)]
Message-Id: <Pine.GSO.4.21.0109240021410.9178-100000@crusoe.crusoe.net>

p4raw-id: //depot/perl@12164

lib/Cwd.pm

index d7e60d6..680fc3e 100644 (file)
@@ -189,6 +189,7 @@ $pwd_cmd ||= 'pwd';
 sub _backtick_pwd {
     my $cwd = `$pwd_cmd`;
     # `pwd` may fail e.g. if the disk is full
+    local $/ = "\n";
     chomp($cwd) if defined $cwd;
     $cwd;
 }