Skip Menu |
 

This queue is for tickets about the PathTools CPAN distribution.

Report information
The Basics
Id: 31194
Status: resolved
Priority: 0/
Queue: PathTools

People
Owner: Nobody in particular
Requestors: jik [...] kamens.brookline.ma.us
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 3.25
Fixed in: (no value)



Subject: File::Spec::Unix->catdir("/", "home") returns "//home"
Download (untitled) / with headers
text/plain 259b
File::Spec::Unix->catdir("/", "home") returns "//home" instead of "/home". Suggest this change: sub catdir { my $self = shift; my(@dirs) = @_; map(s,/+$,,, @dirs); $self->canonpath(join('/', @dirs, '')); # '' because need a trailing '/' }
From: jkeenan [...] cpan.org
Download (untitled) / with headers
text/plain 402b
On Tue Dec 04 09:38:10 2007, JIK wrote: Show quoted text
> File::Spec::Unix->catdir("/", "home") returns "//home" instead > of "/home". >
I cannot reproduce this problem. $ perl -MFile::Spec -E 'say File::Spec::Unix->catdir("/", "home");' /home $ perl -v This is perl 5, version 14, subversion 0 (v5.14.0) built for i686-linux Same result (i.e., no bug) on Darwin with Perl 5.14.2. Thank you very much. Jim Keenan
Presumably the bug has been fixed since I first reported it OVER FOUR YEARS AGO.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.