-
Notifications
You must be signed in to change notification settings - Fork 561
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
File::Spec niggles (5.004_05, 5.005_03, 5.005_57) #137
Comments
From [email protected]File::Spec::*::tmpdir doesn't exist in 5.004_05 or 5.005_03. File::Spec::VMS::tmpdir is documented (and implemented) as Returns a string representation of the first writable directory /sys$scratch This differs from all other File::Spec::*, which always put $ENV{TMPDIR} In 5.004_05 and 5.005_03, File::Spec::* contains the line @ISA = qw(File::Spec::Unix); but not require File::Spec::Unix; (This is OK in 5.005_57.) File::Spec::OS2 says See File::Spec::Unix for a documentation of the methods provided But the semantics of e.g. tmpdir differ - the list of directories tried Mike Guy No 'perl' in Body (below) and no 'perlbug' in To(perlbug@perl.com But as you can see, To: does contain 'perlbug'. Sigh. |
From [Unknown Contact. See original ticket]All of the issues listed in this bug appear to be fixed in 5.6.0, except
This patch changes that behaviour to match the others. Is this correct for Inline Patchdiff -uir perl-5.6.0/lib/File/Spec/VMS.pm perl-5.6.work/lib/File/Spec/VMS.pm
--- perl-5.6.0/lib/File/Spec/VMS.pm Tue Mar 21 03:55:48 2000
+++ perl-5.6.work/lib/File/Spec/VMS.pm Tue Jul 25 16:02:35 2000
@@ -251,15 +251,15 @@
Returns a string representation of the first writable directory
from the following list or '' if none are writable:
- sys$scratch
$ENV{TMPDIR}
+ sys$scratch
=cut
my $tmpdir;
sub tmpdir {
return $tmpdir if defined $tmpdir;
- foreach ('sys$scratch', $ENV{TMPDIR}) {
+ foreach ($ENV{TMPDIR}, 'sys$scratch') {
next unless defined && -d && -w _;
$tmpdir = $_;
last;
-spp |
From @cwest[RT_System - Tue Jul 25 06:06:23 2000]: Could a VMS knowlegable person please tell me in what order the temp Casey West (bug patrol)
|
From [email protected]
I don't quite understand what this means but tmpdir() exists where
tmpdir() is simply there to give you some sort of usable system temp
Long since fixed.
The tmpdir() differences are documented. File::Spec->tmpdir is |
@schwern - Status changed from 'open' to 'resolved' |
References Perl#137 (cherry picked from commit fb6dad1b13facfbcdf834a6b95db2320410d7c78) Signed-off-by: Nicolas R <[email protected]>
References #137 (cherry picked from commit fb6dad1b13facfbcdf834a6b95db2320410d7c78) Signed-off-by: Nicolas R <[email protected]>
References #137 (cherry picked from commit fb6dad1b13facfbcdf834a6b95db2320410d7c78) Signed-off-by: Nicolas R <[email protected]>
Migrated from rt.perl.org#942 (status was 'resolved')
Searchable as RT942$
The text was updated successfully, but these errors were encountered: