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)



Content-Type: text/plain
Content-Disposition: inline
Content-Transfer-Encoding: binary
MIME-Version: 1.0
X-Mailer: MIME-tools 5.411 (Entity 5.404)
Subject: shebang line options lost
X-RT-Original-Encoding: iso-8859-1
Content-Length: 545
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
Return-Path: <autrijus [...] gmail.com>
X-Original-To: bug-par [...] rt.cpan.org
Delivered-To: cpan-bug+par [...] pallas.eruditorum.org
Received: from mproxy.gmail.com (rproxy.gmail.com [64.233.170.203]) by pallas.eruditorum.org (Postfix) with SMTP id D70A284C01C for <bug-par [...] rt.cpan.org>; Mon, 5 Jul 2004 13:37:04 -0400 (EDT)
Received: by mproxy.gmail.com with SMTP id 61so32466rnd for <bug-par [...] rt.cpan.org>; Mon, 05 Jul 2004 10:37:24 -0700 (PDT)
Received: by 10.38.101.29 with SMTP id y29mr1468072rnb; Mon, 05 Jul 2004 10:30:44 -0700 (PDT)
Message-Id: <1912f0e2040705103072ee6cee [...] mail.gmail.com>
Date: Mon, 5 Jul 2004 19:30:44 +0200
From: Autrijus Tang <autrijus [...] gmail.com>
Reply-To: autrijus [...] autrijus.org
To: bug-par [...] rt.cpan.org
Subject: Re: [cpan #6845] shebang line options lost
In-Reply-To: <rt-6845-20476.19.5928579733946 [...] cpan.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
References: <rt-6845-20476.19.5928579733946 [...] cpan.org>
RT-Send-Cc:
X-RT-Original-Encoding: us-ascii
Content-Length: 420
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.