Skip Menu |

This queue is for tickets about the PathTools CPAN distribution.

Report information
The Basics
Id: 16600
Status: rejected
Priority: 0/
Queue: PathTools

People
Owner: Nobody in particular
Requestors: clkao [...] clkao.org
Cc:
AdminCc:

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



Subject: abs2rel weirdness
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
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