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

[email protected] ("Roderich Schupp via RT")
Newsgroups perl.par
Message-ID <[email protected]>
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: [email protected]
      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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.