Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Path-Class CPAN distribution.

Maintainer(s)' notes

I prefer that bugs & patches are filed on GitHub rather than on RT: https://github.com/kenahoo/Path-Class/issues. Thanks.

Report information
The Basics
Id: 6807
Status: resolved
Priority: 0/
Queue: Path-Class

People
Owner: Nobody in particular
Requestors: sterling [...] hanenkamp.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.06
Fixed in: (no value)



Subject: Relative parents in directories incorrect
perl -MPath::Class -e ' $x = file("bin/process-site"); for (1..6) { print "Relative: $x\n"; $x = $x->parent; }' Relative: bin/process-site Relative: bin Relative: Relative: / Relative: / Relative: / Obviously, this is a deviation from both the documentation and desired result. The behavior doesn't occur if you use dir() instead of file() to construct the initial object. Cheers, Sterling
Date: Wed, 30 Jun 2004 21:04:22 -0500
From: "Ken Williams" <ken [...] mathforum.org>
To: bug-Path-Class [...] rt.cpan.org
Subject: Re: [cpan #6807] Relative parents in directories incorrect
RT-Send-Cc:
Thanks, I've fixed this bug for the next release. -Ken On Jun 30, 2004, at 12:22 PM, Guest via RT wrote: Show quoted text
> perl -MPath::Class -e ' > $x = file("bin/process-site"); > for (1..6) { > print "Relative: $x\n"; > $x = $x->parent; > }' > Relative: bin/process-site > Relative: bin > Relative: > Relative: / > Relative: / > Relative: /