ipc-system-simple icon indicating copy to clipboard operation
ipc-system-simple copied to clipboard

Fix windows arguments passing

Open wilx opened this issue 11 years ago • 2 comments

See also https://github.com/pjf/ipc-system-simple/issues/10.

wilx avatar Feb 06 '14 14:02 wilx

@wilx: on my Windows 7 x86-64 VM with strawberry perl 5.18.2, on your fix-windows-arguments-passing branch (which I converted into a standard Perl distribution using "dzil build" on Linux), then "perl Makefile.PL" ; "dmake" ; "dmake test" stalls at t/04capture.t on 1/12 . Can you look into it?

Regards,

-- Shlomi Fish

shlomif avatar May 02 '14 09:05 shlomif

The problem was introduced in 1d99f777afccb11a5c735325f78d2034a39e5e0f just before this PR. That might be simpler to debug.

FWIW this works fine on the version of perl that comes with the Windows version of Git. But it doesn't work with Strawberry 5.20.1.

The problem this PR is solving is causing perl5i headaches on Windows.

use IPC::System::Simple 'system';  # or use autodie ':system'
system $^X, '-E', q[say 'Hello']; # doesn't work

system $^X, '-E', q["say 'Hello'"]; # "works", but doesn't work on Unix.

schwern avatar Aug 08 '16 16:08 schwern