Skip Menu |
 

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

Report information
The Basics
Id: 61874
Status: resolved
Priority: 0/
Queue: PAR-Packer

People
Owner: RSCHUPP [...] cpan.org
Requestors: ex-hobbit42 [...] gmx.de
Cc:
AdminCc:

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



Download (untitled) / with headers
text/plain 925b
Hi, I'm using Strawberry Perl 5.10.1.3 (Windows XP), PAR::Packager 1.007 and PAR 1.002. I already posted the problem in http://cpanforum.com/posts/12974 and by now I think I should report it as a bug, because the executable generated by PAR::Packer behaves differently from original script. The sample.pl is: #!/usr/bin/perl use 5.010; print "argv= @ARGV, #args=",$#ARGV,"\n"; If I call the script Show quoted text
>sample.pl *.txt
then I get (as expected) Show quoted text
>argv= *.txt, #args=0
But if I call the executable generated by PAR::Packer Show quoted text
>sample.exe *.txt
then I get: Show quoted text
>argv= 1.txt 2.txt 3.txt 4.txt, #args=3
So in contrary to the script, the wildcard is expanded (and therefor the script doesn't work as expected under Windows). I think, that the wildcard expansion may be an emulation of the behaviour of the shell in Linux/Unix... so actually a good thing. But still: the .exe generated by PAR::Packer behaves differently from the script.
Subject: Wildcard problem?
From: ex-hobbit42 [...] gmx.de
Download (untitled) / with headers
text/plain 103b
Oh...sorry, I forgot the subject ("Wildcard problem?") and now I don't know how to add it subsequently.
Download (untitled) / with headers
text/plain 591b
On 2010-10-04 07:19:04, liandril wrote: Show quoted text
> Oh...sorry, I forgot the subject ("Wildcard problem?") and now I don't > know how to add it subsequently.
No problemo, I just changed it :) I can reproduce this here - definitely a bug. A suspect the wildcard expansion happens in the "bootstrap" executable - that's the one you see as the result of the packing. The script is actually run by a special purpose perl interpreter that is invoked by the "bootstrap" executable. Probably expansion is done by MingW libraries before "bootstrap" main() is entered. I'll do some digging. Cheers, Roderich
From: topeg [...] gmx.de
Download (untitled) / with headers
text/plain 219b
Am Mo 04. Okt 2010, 17:37:13, RSCHUPP schrieb: Show quoted text
> Probably expansion is done by MingW libraries before > "bootstrap" main() is entered.
I think this is the answer: http://www.cygwin.com/ml/cygwin/1999-11/msg00052.html
Download (untitled) / with headers
text/plain 122b
Thanks for the hint wrt globbing with MingW. Fix committed, will be in the next release of PAR::Packer. Cheers, Roderich
From: ex-hobbit42 [...] gmx.de
Thanks to both of you :-) !!!
Download (untitled) / with headers
text/plain 193b
Show quoted text
> Thanks to both of you :-) !!!
You're welcome :) Note however that an already resolved ticket will be automatically re-opened by RT whenever someone adds any new comment... Cheers, Roderich


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.