pjf / ipc-system-simple

Perl module to make running system commands and capturing errors as simple as possible.

Home Page:http://search.cpan.org/perldoc?IPC::System::Simple

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

capturex with spaces and an empty argument works fine on Linux - and fails on Win64 (Windows 7 Strawberry Perl)

shlomif opened this issue · comments

The following program works fine on Linux, but fails on Win64 / Windows 7 x86-64 / Strawberry Perl 5.18.2:

use strict;
use warnings;

use IPC::System::Simple qw( capturex );

my $s =
capturex(
    $^X,
    "-e",
    'use Data::Dumper; print Dumper([@ARGV]);',
    '--',
    '-p', '',
);

print $s, "\n";

I am getting test failures for https://metacpan.org/release/App-Du-Analyze on Windows due to that. Please look into fixing it.

Regards,

-- Shlomi Fish

Can you try the following branch in the github repository and see if it reduces the number of test failures?
https://github.com/pjf/ipc-system-simple/tree/theory-win32quote

Thank you very much.
Jim Keenan

I believe that this issue may be resolved in IPC-System-Simple version 1.30, just released to CPAN. Can you confirm?

Thank you very much.
Jim Keenan