ipc-system-simple
ipc-system-simple copied to clipboard
capturex with spaces and an empty argument works fine on Linux - and fails on Win64 (Windows 7 Strawberry Perl)
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