From: Robert Spier Date: Tue, 12 Dec 2000 21:12:39 +0000 (-0500) Subject: [20000615.005] [PATCH] Cwd::fastgetcwd broken (or mis-named?) on Unix X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=1f4f94f54707f6b6f968889b09e1660facfd0c3e;p=p5sagit%2Fp5-mst-13.2.git [20000615.005] [PATCH] Cwd::fastgetcwd broken (or mis-named?) on Unix Message-ID: <14902.56087.678086.725773@rls.cx> fastgetcwd is defined using a glob alias on a $^O dependent basis - and there was no default assignment or perl subroutine. p4raw-id: //depot/perl@8098 --- diff --git a/lib/Cwd.pm b/lib/Cwd.pm index 840e2a6..4a263cd 100644 --- a/lib/Cwd.pm +++ b/lib/Cwd.pm @@ -70,7 +70,7 @@ use strict; use Carp; -our $VERSION = '2.03'; +our $VERSION = '2.04'; use base qw/ Exporter /; our @EXPORT = qw(cwd getcwd fastcwd fastgetcwd); @@ -99,6 +99,9 @@ unless(defined &cwd) { } } +# set a reasonable (and very safe) default for fastgetcwd, in case it +# isn't redefined later (20001212 rspier) +*fastgetcwd = \&cwd; # By Brandon S. Allbery #