Cwd::fastgetcwd broken (or mis-named?) on Unix #2095
This is a bug report for perl from email@example.com,
Cwd.pm contains references to both fastgetcwd and fastcwd, but
The example code in the pod text shows only fastgetcwd:
$dir = fastgetcwd;
But the description text only describes fastcwd() in
although it does mention fastgetcwd later when describine cwd():
Finally, there is no implementation for fastgetcwd on Unix platforms,
Why are both names defined? Should one of them go away, and the
Site configuration information for perl 5.00502:
Configured by avera at Mon Jan 18 16:36:45 PST 1999.
Summary of my perl5 (5.0 patchlevel 5 subversion 2) configuration:
Locally applied patches:
@INC for perl 5.00502:
Environment for perl 5.00502:
Here's a simple patch to make fastgetcwd always work.
(The problem was that fastgetcwd is defined using a glob alias on a
--- Cwd.pm Tue Dec 12 21:05:33 2000 +++ Cwd.pm.orig Tue Dec 12 20:55:01 2000 @@ -70,7 +70,7 @@ use Carp; -our $VERSION = '2.04'; +our $VERSION = '2.03'; use base qw/ Exporter /; our @EXPORT = qw(cwd getcwd fastcwd fastgetcwd); @@ -99,9 +99,6 @@ } } -# set a reasonable (and very safe) default for fastgetcwd, in case it -# isn't redefined later (20001212 rspier) -*fastgetcwd = \&cwd; # By Brandon S. Allbery #
On Tue, Dec 12, 2000 at 09:12:39PM -0500, Robert Spier wrote:
I assume this patch is accidentally reversed...?