This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Error in the latest FindBin patch, noticed by Nicholas
[perl5.git] / lib / FindBin.pm
index 122f083..b1d6404 100644 (file)
@@ -162,7 +162,7 @@ sub init
 
      my $cwd = getcwd();
      defined $cwd or $cwd = cwd(); # try harder
-     $script = File::Spec->catfile(getcwd(), $script)
+     $script = File::Spec->catfile($cwd, $script)
        unless File::Spec->file_name_is_absolute($script);
 
      ($Script,$Bin) = fileparse($script);