develooper Front page | perl.perl5.porters | Postings from July 2016

[perl #126041] miniperl PP glob/Perl_start_glob() wipes all of %ENVand perlglob.exe proc can't start on VC 2005/WinXP

From:
Father Chrysostomos via RT
Date:
July 17, 2016 23:20
Subject:
[perl #126041] miniperl PP glob/Perl_start_glob() wipes all of %ENVand perlglob.exe proc can't start on VC 2005/WinXP
Message ID:
rt-4.0.18-2109-1468797597-41.126041-15-0@perl.org
On Mon Sep 21 23:49:05 2015, tonyc wrote:
> On Fri Sep 11 01:13:01 2015, bulk88 wrote:
> > There are 2.25 ways to fix this, add SYSTEMROOT to the list of PATH
> > and
> > HOME being passed through, or stop localizing and wiping all of %ENV
> > and
> > just localize LS_COLORS,

Does the attached patch work for you?

> > or, I dont like this fix "#ifndef
> > WIN32\n/*localize/wipe %ENV */\n#endif" since that would fix it for
> > me,
> > but doesn't fix the greater design problem of deleting env vars that
> > you
> > dont know why you are deleting them. So which way will this be fixed?
> 
> Another option would be to bring the mechanics of csh_glob from File-
> Glob into core, similar to what was suggested in
> 
> https://rt.perl.org/Ticket/Display.html?id=93638#txn-951162
> 
> To me that seems the safest mechanism, it would eliminate the need for
> shelling out at all.

But it would be a lot more work.  (And ‘work’ is a four-letter word.)

-- 

Father Chrysostomos


---
via perlbug:  queue: perl5 status: open
https://rt.perl.org/Ticket/Display.html?id=126041



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