develooper Front page | perl.par | Postings from September 2017

[rt.cpan.org #122949] PAR-Packer-1.37 executables split argumentscontaining whitespace

From:
Roderich Schupp via RT
Date:
September 7, 2017 18:32
Subject:
[rt.cpan.org #122949] PAR-Packer-1.37 executables split argumentscontaining whitespace
Message ID:
rt-4.0.18-23055-1504809136-1458.122949-15-0@rt.cpan.org
Thu Sep 07 14:32:15 2017: Request 122949 was acted upon.
Transaction: Correspondence added by RSCHUPP
       Queue: PAR-Packer
     Subject: PAR-Packer-1.37 executables split arguments containing whitespace
   Broken in: 1.037
    Severity: Important
       Owner: Nobody
  Requestors: APG@cpan.org
      Status: new
 Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=122949 >


On 2017-09-03 15:13:11, APG wrote:
> Windows executables built with pp 1.37 split any arguments containing
> whitespace.
> 
> The bug can be seen with a one-line script: print join(':', @ARGV)
> 
> Packed with pp 1.36, `a.exe "foo bar"` prints "foo bar".
> Packed with pp 1.37, `a.exe "foo bar"` prints "foo:bar".
> 
> Encountered on Windows 7 under Strawberry perl 5.24 and 5.26.

Then we need to quote the strings passed to spawnvp()...
Can you check with GitHub master?

Cheers, Roderich



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About