Quotes fixed, see also perl #36079
[p5sagit/p5-mst-13.2.git] / lib / Cwd.pm
index 15525da..d00c8fe 100644 (file)
@@ -170,7 +170,7 @@ use strict;
 use Exporter;
 use vars qw(@ISA @EXPORT @EXPORT_OK $VERSION);
 
-$VERSION = '3.07';
+$VERSION = '3.08';
 
 @ISA = qw/ Exporter /;
 @EXPORT = qw(cwd getcwd fastcwd fastgetcwd);
@@ -585,9 +585,7 @@ sub fast_abs_path {
            return fast_abs_path($link_target);
        }
        
-       my $tdir = $dir;
-       $tdir =~ s!\\!/!g if $^O eq 'MSWin32';
-       return $tdir eq File::Spec->rootdir
+       return $dir eq File::Spec->rootdir
          ? File::Spec->catpath($vol, $dir, $file)
          : fast_abs_path(File::Spec->catpath($vol, $dir, '')) . '/' . $file;
     }