summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2000-10-23 12:39:52 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2000-10-23 12:39:52 +0000
commit61c85163db9a7831d8b654984e5e5d55ad75124d (patch)
treeeaf4b9a8b53cea5da42c62794502a485be547bd4 /lib
parentae1d639420c89b56841c04313f3b89c84e8ea279 (diff)
downloadperl-61c85163db9a7831d8b654984e5e5d55ad75124d.tar.gz
Undo the basename() part of #7412 since the lib/basename
tests would need upgrading too. p4raw-id: //depot/perl@7414
Diffstat (limited to 'lib')
-rw-r--r--lib/File/Basename.pm9
1 files changed, 1 insertions, 8 deletions
diff --git a/lib/File/Basename.pm b/lib/File/Basename.pm
index 279503680a..4581e7e93c 100644
--- a/lib/File/Basename.pm
+++ b/lib/File/Basename.pm
@@ -236,14 +236,7 @@ sub dirname {
if ($_[0] =~ m#/#) { $fstype = '' }
else { return $dirname || $ENV{DEFAULT} }
}
- if ($fstype =~ /MacOS/i) {
- $dirname =~ s/([^:]):\z/$1/s;
- unless( length($basename) ) {
- local($File::Basename::Fileparse_fstype) = $fstype;
- ($basename,$dirname) = fileparse $dirname;
- $dirname =~ s/([^:]):\z/$1/s;
- }
- }
+ if ($fstype =~ /MacOS/i) { return $dirname }
elsif ($fstype =~ /MSDOS/i) {
$dirname =~ s/([^:])[\\\/]*\z/$1/;
unless( length($basename) ) {