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: 16600
Status: rejected
Priority: 0/
Queue: PathTools

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

Bug Information
Severity: (no value)
Broken in:
  • 3.14
  • 3.14_02
Fixed in: (no value)

Subject: abs2rel weirdness
Download (untitled) / with headers
text/plain 306b
abs2rel doesn't seem to be happy with '/': % perl -MFile::Spec -le 'print File::Spec::Unix->abs2rel("/prj/trunk/myview", "/")' ../prj/trunk/myview # wrong % perl -MFile::Spec -le 'print File::Spec::Unix->abs2rel("/prj/trunk/myview", "/prj")' prj/trunk/myview # correct This is a regression since 3.12
Download (untitled) / with headers
text/plain 323b
I think I disagree about the expectations. abs2rel("/prj/trunk/myview", "/") should produce "prj/trunk/myview". abs2rel("/prj/trunk/myview", "/prj") should produce "trunk/myview". In both cases, it does currently seem to do the right thing already - I added those two cases to the regression tests and they pass. -Ken

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

Please report any issues with to