U
Udo Grabowski
Hi,
the following construction gives additional @ARGV entries which shouldn't
be there:
@command = ("perl-program","--help",">","logfile");
eval { system(@command) };
Inside perl-program (which starts with #!/usr/bin/perl),
@ARGV now contains also '>' and 'logfile' as additional
entries. This contradicts the definition of @ARGV:
"The array @ARGV contains the command-line arguments
INTENDED FOR THE SCRIPT"
Since the redirection parameters are not script parameters, they
shouldn't appear (and didn't appear before). This bug breaks all
and everything depending on @ARGV and the number of parameters !
Is this a perl bug, or is the system command of the OS responsible
for this broken behaviour ? Or even the distributor of this perl
version ?
Platform: OpenSolaris 2009.06,
Version: perl 5.8.8 (Coolstack distribution)
i86pc-solaris-thread-multi
the following construction gives additional @ARGV entries which shouldn't
be there:
@command = ("perl-program","--help",">","logfile");
eval { system(@command) };
Inside perl-program (which starts with #!/usr/bin/perl),
@ARGV now contains also '>' and 'logfile' as additional
entries. This contradicts the definition of @ARGV:
"The array @ARGV contains the command-line arguments
INTENDED FOR THE SCRIPT"
Since the redirection parameters are not script parameters, they
shouldn't appear (and didn't appear before). This bug breaks all
and everything depending on @ARGV and the number of parameters !
Is this a perl bug, or is the system command of the OS responsible
for this broken behaviour ? Or even the distributor of this perl
version ?
Platform: OpenSolaris 2009.06,
Version: perl 5.8.8 (Coolstack distribution)
i86pc-solaris-thread-multi