Skip Menu |

This queue is for tickets about the PAR-Packer CPAN distribution.

Report information
The Basics
Id: 6845
Status: open
Priority: 0/
Queue: PAR-Packer

People
Owner: Nobody in particular
Requestors: parbug [...] bereft.net
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.982
Fixed in: (no value)



Subject: shebang line options lost
Options on the shebang line of a perl script are not used when run via a par executable. (Could a perl -x somewhere fix this?) $ cat cmdopts.pl #!/usr/bin/perl -nalw print "running"; print join ":", @F; $ echo "a b c" | ./cmdopts.pl running a:b:c $ pp -o cmdopts cmdopts.pl $ ls -l total 1.4M -rwxr-xr-x 1 bsb bsb 1.3M Jul 5 16:21 cmdopts* -rwxr-xr-x 1 bsb bsb 59 Jul 5 16:18 cmdopts.pl* $ echo "a b c" | ./cmdopts running$ $ pmvers PAR 0.80 $ perl -v This is perl, v5.6.1 built for i386-linux
Date: Mon, 5 Jul 2004 19:30:44 +0200
From: Autrijus Tang <autrijus [...] gmail.com>
To: bug-par [...] rt.cpan.org
Subject: Re: [cpan #6845] shebang line options lost
RT-Send-Cc:
On Mon, 5 Jul 2004 02:25:57 -0400 (EDT), via RT <bug-par@rt.cpan.org> wrote: Show quoted text
> Options on the shebang line of a perl script are > not used when run via a par executable. > (Could a perl -x somewhere fix this?)
Indeed. The myldr/main.c needs to duplicate most of Perl's command line switch processing for this to happen -- thanks for filing this bug, I've added it to TODO, will investigate later. Thanks, /Autrijus/