Skip Menu | You are currently an anonymous guest. | Login | Return to Main | About rt.cpan.org
 

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

X Report information
Id: 13081
Status: resolved
Left: 0 min
Priority: 0/0
Queue: File-Path-Expand

Owner: Nobody
Requestors: NKUITSE <nkuitse [...] cpan.org>
Cc:
AdminCc:

Severity: Normal
Broken in: 1.01
Fixed in: (no value)

X Attachments
File-Path-Expand-1.01.patch




X History Display mode: Brief headersFull headers
#   Fri Jun 03 16:08:02 2005 guest - Ticket created  
Subject: File-Path-Expand: Patch to fix expansion of '~' and '~foo'
[text/plain 651b]
I've used File::Path::Expand happily in several projects but
just ran into a bug where paths such as '~' and '~foo' -- i.e.,
without a trailing slash -- failed to expand. I attach a patch
that appears to fix this; here's a summary of my changes:

* Changed the regexes to use look-ahead assertions so the
trailing slash may be omitted.

* Changed the pattern for matching ~foo etc. so it doesn't
match empty user names (not that one could exist after the
first subsitution, but what the heck).

* Made the substitutions mutually exclusive.

* Added tests to verify the corrected behavior.

* Bumped the version from 1.01 to 1.02
[application/octet-stream 2.6k]
Message body not shown because it is too large or is not plain text.
#   Thu May 11 11:00:00 2006 RCLAMP - Correspondence added  
[text/plain 81b]
Thanks. Applied and uploaded to CPAN

--
Richard Clamp <richardc[...]unixbeard.net>
#   Thu May 11 11:00:04 2006 RT_System - Status changed from 'new' to 'open'  
#   Thu May 11 11:00:23 2006 RCLAMP - Status changed from 'open' to 'resolved'