summaryrefslogtreecommitdiff
path: root/lib/Cwd.pm
diff options
context:
space:
mode:
authorSteve Peters <steve@fisharerojo.org>2006-03-07 04:48:29 +0000
committerSteve Peters <steve@fisharerojo.org>2006-03-07 04:48:29 +0000
commit23bb49fa8c98c39adab74ba793fe7dad073789c2 (patch)
treec90fa0db0ebecc88d32a2577eaa0f7cc7437045b /lib/Cwd.pm
parent71fbae4b4b3f337a0c2643cc859be9d389fd2e98 (diff)
downloadperl-23bb49fa8c98c39adab74ba793fe7dad073789c2.tar.gz
Upgrade to PathTools-3.17
p4raw-id: //depot/perl@27398
Diffstat (limited to 'lib/Cwd.pm')
-rw-r--r--lib/Cwd.pm11
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/Cwd.pm b/lib/Cwd.pm
index b6f0a2ad2e..21cc263a5f 100644
--- a/lib/Cwd.pm
+++ b/lib/Cwd.pm
@@ -171,7 +171,7 @@ use strict;
use Exporter;
use vars qw(@ISA @EXPORT @EXPORT_OK $VERSION);
-$VERSION = '3.15';
+$VERSION = '3.17';
@ISA = qw/ Exporter /;
@EXPORT = qw(cwd getcwd fastcwd fastgetcwd);
@@ -357,6 +357,15 @@ unless ($METHOD_MAP{$^O}{cwd} or defined &cwd) {
}
}
+if ($^O eq 'cygwin') {
+ # We need to make sure cwd() is called with no args, because it's
+ # got an arg-less prototype and will die if args are present.
+ local $^W = 0;
+ my $orig_cwd = \&cwd;
+ *cwd = sub { &$orig_cwd() }
+}
+
+
# set a reasonable (and very safe) default for fastgetcwd, in case it
# isn't redefined later (20001212 rspier)
*fastgetcwd = \&cwd;