New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cwd::fastgetcwd broken (or mis-named?) on Unix #2095
Comments
From @jimavThis is a bug report for perl from avera@hal.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 -Jim 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: |
From @rspierHere's a simple patch to make fastgetcwd always work. (The problem was that fastgetcwd is defined using a glob alias on a Inline Patch--- 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
# |
From @jhiOn Tue, Dec 12, 2000 at 09:12:39PM -0500, Robert Spier wrote:
I assume this patch is accidentally reversed...?
|
Migrated from rt.perl.org#3385 (status was 'resolved')
Searchable as RT3385$
The text was updated successfully, but these errors were encountered: