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

[ #122949] PAR-Packer-1.37 executables split argumentscontaining whitespace

Roderich Schupp via RT
September 7, 2017 18:32
[ #122949] PAR-Packer-1.37 executables split argumentscontaining whitespace
Message ID:
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
      Status: new
 Ticket <URL: >

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 Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About