Note: Mac used to use cwd(), now curdir, slight change
(relative vs. absolute).
p4raw-id: //depot/perl@18956
$tmpdir = $_;
last;
}
- $tmpdir = '' unless defined $tmpdir;
+ $tmpdir = File::Spec->curdir unless defined $tmpdir;
return $tmpdir;
}
@ISA = qw(File::Spec::Unix);
-use Cwd;
my $macfiles;
if ($^O eq 'MacOS') {
$macfiles = eval { require Mac::Files };
sub tmpdir {
return $tmpdir if defined $tmpdir;
$tmpdir = $ENV{TMPDIR} if -d $ENV{TMPDIR};
- unless (defined($tmpdir)) {
- $tmpdir = cwd();
- }
+ $tmpdir = File::Spec->curdir unless defined $tmpdir;
return $tmpdir;
}
$tmpdir = $_;
last;
}
- $tmpdir = '' unless defined $tmpdir;
+ $tmpdir = File::Spec->curdir unless defined $tmpdir;
$tmpdir =~ s:\\:/:g;
$tmpdir = $self->canonpath($tmpdir);
return $tmpdir;
$tmpdir = $_;
last;
}
- $tmpdir = '' unless defined $tmpdir;
+ $tmpdir = File::Spec->curdir unless defined $tmpdir;
return $tmpdir;
}
$tmpdir = $_;
last;
}
- $tmpdir = '' unless defined $tmpdir;
+ $tmpdir = File::Spec->curdir unless defined $tmpdir;
return $tmpdir;
}
$tmpdir = $_;
last;
}
- $tmpdir = '' unless defined $tmpdir;
+ $tmpdir = File::Spec->curdir unless defined $tmpdir;
$tmpdir = $self->canonpath($tmpdir);
return $tmpdir;
}