develooper Front page | perl.perl5.porters | Postings from September 2011

[perl #98812] File::Glob Windows home directory expansion

Thread Previous
From:
Father Chrysostomos via RT
Date:
September 10, 2011 09:50
Subject:
[perl #98812] File::Glob Windows home directory expansion
Message ID:
rt-3.6.HEAD-31297-1315673445-226.98812-15-0@perl.org
On Fri Sep 09 23:55:19 2011, sprout wrote:
> On Fri Sep 09 22:58:37 2011, doug@somethingdoug.com wrote:
> > This is a bug report for perl from doug@somethingdoug.com,
> > generated with the help of perlbug 1.39 running under perl 5.12.3.
> > 
> > 
> > -----------------------------------------------------------------
> > The currently bundled File::Glob will expand a tilde character
> > to the current user's home directory. Now, the method this uses
> > is to check the HOME environment variable (which is does not
> > exist by default on Windows) and then using password file
> > functions (which are not implemented on Windows). I am including
> > a patch here that on Windows will fallback to expanding the home
> > directory from the USERPROFILE environment variable, which exists
> > by default on Windows and serves the same purpose as HOME.
> > 
> > Here is a patch I have made to add this support. I tested it on
> > Windows 7 and Ubuntu 11.04. It is based off the blead branch.
> 
> Thank you. I’ve just pushed that to the smoke-me/tilde branch.

And to blead as 528bd3c.


Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About