Skip Menu | will be shut down on March 1st, 2021.

This queue is for tickets about the PathTools CPAN distribution.

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

Owner: Nobody in particular
Requestors: jik [...]

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 [...]
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 infrastructure.

Please report any issues with to