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
Download (untitled) / with headers
text/plain 545b
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:
Download (untitled) / with headers
text/plain 420b
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/


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.