Skip Menu |

This queue is for tickets about the PAR CPAN distribution.

Report information
The Basics
Id: 14110
Status: resolved
Priority: 0/
Queue: PAR

People
Owner: smueller [...] cpan.org
Requestors: yoko00068 [...] yahoo.co.jp
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 0.89
Fixed in: (no value)



Subject: @ARGV overwritten
(I'm sorry by words of machine translation.) ARGV of a child is polluted as follows by ARGV of a parent. I should originally become a=1,b=2,c=3. --- D:\wk>type a.pl `b.exe 1 2 3 4 5` ; D:\wk>type b.pl $a = shift ; $b = shift ; $c = shift ; $d = shift ; $e = shift ; open(AP,">b.txt") ; print AP "a = $a\n" ; print AP "b = $b\n" ; print AP "c = $c\n" ; print AP "d = $d\n" ; print AP "e = $e\n" ; close(AP) ; D:\wk>pp -o a.exe a.pl D:\wk>pp -o b.exe b.pl D:\wk>a.exe a b c D:\wk>type b.txt a = a b = b c = c d = 4 e = 5
From: SMUELLER
[guest - Thu Aug 11 06:32:14 2005]: Show quoted text
> ARGV of a child is polluted as follows by ARGV of a parent. > I should originally become a=1,b=2,c=3.
[...] Alan Stewart has posted a patch to fix this on the perl.par mailing list. See http://www.nntp.perl.org/group/perl.par/2152 (Thanks, Alan.) The patch has been included in the PAR Subversion repository as revision 34. Will be in 0.91. Steffen
From: yoko00068 [...] yahoo.co.jp
I whom I thank am glad!