Cwd agree with File::Spec (that is, native path
syntax using \ instead of / -- backward compatibility
polic warning) and stop Win32 from using bsd_realpath().
p4raw-id: //depot/perl@12116
sub _os2_cwd {
$ENV{'PWD'} = `cmd /c cd`;
chop $ENV{'PWD'};
- $ENV{'PWD'} =~ s:\\:/:g ;
return $ENV{'PWD'};
}
if (!defined &Dos::GetCwd) {
$ENV{'PWD'} = `command /c cd`;
chop $ENV{'PWD'};
- $ENV{'PWD'} =~ s:\\:/:g ;
} else {
$ENV{'PWD'} = Dos::GetCwd();
}
*fastcwd = \&_NT_cwd;
*fastgetcwd = \&_NT_cwd;
*abs_path = \&fast_abs_path;
+ *realpath = \&fast_abs_path;
}
elsif ($^O eq 'os2') {
# sys_cwd may keep the builtin command