That should work on Windows.
>perl -E"say system('perl -e exit($ARGV[0]) 0'); say $?; say ${^CHILD_ +ERROR_NATIVE}" 0 0 0 >perl -E"say system('perl -e exit($ARGV[0]) 1'); say $?; say ${^CHILD_ +ERROR_NATIVE}" 256 256 256
Please provide more info (e.g. perl -V).
What's ant's file extension (e.g. .exe)? (Not sure if that matters.)
In reply to Re: system call returns incorrect in windows
by ikegami
in thread system call returns incorrect in windows
by ericaQA
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |