This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Display the native pwd command.
authorJarkko Hietaniemi <jhi@iki.fi>
Fri, 4 Jan 2002 21:07:05 +0000 (21:07 +0000)
committerJarkko Hietaniemi <jhi@iki.fi>
Fri, 4 Jan 2002 21:07:05 +0000 (21:07 +0000)
p4raw-id: //depot/perl@14078

ext/Cwd/t/cwd.t

index b636c6d..88a1b94 100644 (file)
@@ -29,11 +29,15 @@ eval { fastcwd };
 # Must find an external pwd (or equivalent) command.
 
 my $pwd_cmd =
-    ($^O eq "MSWin32" || $^O eq "NetWare") ? "cd" : (grep { -x && -f } map { "$_/pwd" }
-                              split m/$Config{path_sep}/, $ENV{PATH})[0];
+    ($^O eq "MSWin32" || $^O eq "NetWare") ?
+        "cd" :
+        (grep { -x && -f } map { "$_/pwd" }
+                          split m/$Config{path_sep}/, $ENV{PATH})[0];
 
 $pwd_cmd = 'SHOW DEFAULT' if $IsVMS;
 
+print "# native pwd = '$pwd_cmd'\n";
+
 SKIP: {
     skip "No native pwd command found to test against", 4 unless $pwd_cmd;