Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the PathTools CPAN distribution.

Report information
The Basics
Id:
27698
Status:
rejected
Priority:
Low/Low
Queue:

People
Owner:
Nobody in particular
Requestors:
develop [...] traveljury.com
Cc:
AdminCc:

BugTracker
Severity:
Critical
Broken in:
3.25
Fixed in:
(no value)



Subject: abs2rel fails on Cygwin
MIME-Version: 1.0
X-Mailer: MIME-tools 5.418 (Entity 5.418)
Content-Type: text/plain; charset="utf8"
Content-Disposition: inline
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 262
Calling File::Spec->abs2rel($0) doesn't prepend the current drive under Cygwin. So it returns /path rather than C:/path I think File::Spec::Cygwin should have its own _cwd sub: sub _cwd { require Cwd; Cwd::getdcwd(); } thanks Clint
MIME-Version: 1.0
X-Mailer: MIME-tools 5.418 (Entity 5.418)
Content-Disposition: inline
Message-Id: <rt-3.6.HEAD-32639-1182538837-152.27698-0-0@rt.cpan.org>
Content-Type: text/plain; charset="utf8"
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Original-Encoding: utf-8
Content-Length: 547
Actually, that probably isn't the fix. let me explain the issue. I am trying to get an absolute directory to access my module's test data. I am doing the following: sub get_path { return File::Spec->catdir( ( File::Spec->splitpath( File::Spec->rel2abs($0) ))[ 0, 1 ] , 'data',@_ ); } And, on Cygwin, this is returning a path like: //home/cwill1is/..../Config-Loader-1.02/t/data/empty Rather than: /home/cwill1is/..../Config-Loader-1.02/t/data/empty thanks Clint
MIME-Version: 1.0
In-Reply-To: <rt-3.6.HEAD-32639-1182538837-152.27698-0-0@rt.cpan.org>
X-Mailer: MIME-tools 5.418 (Entity 5.418)
Content-Disposition: inline
Message-Id: <rt-3.6.HEAD-32656-1182539811-1432.27698-0-0@rt.cpan.org>
References: <rt-3.6.HEAD-32639-1182538837-152.27698-0-0@rt.cpan.org>
Content-Type: text/plain; charset="utf8"
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Original-Encoding: utf-8
Content-Length: 88
Never mind - my error. I was using catdir(splitpath()) rather than catpath(splitpath())


This service runs on Request Tracker, is sponsored by The Perl Foundation, and maintained by Best Practical Solutions.

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