ipc-system-simple icon indicating copy to clipboard operation
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)

Open shlomif opened this issue 10 years ago • 2 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

shlomif avatar May 02 '14 09:05 shlomif

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

jkeenan avatar Mar 19 '20 11:03 jkeenan

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

jkeenan avatar Mar 24 '20 01:03 jkeenan