Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: system call returns incorrect in windows

by ikegami (Patriarch)
on Apr 06, 2018 at 18:15 UTC ( [id://1212449]=note: print w/replies, xml ) Need Help??


in reply to system call returns incorrect in windows

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.)

Replies are listed 'Best First'.
Re^2: system call returns incorrect in windows
by ericaQA (Novice) on Apr 06, 2018 at 18:59 UTC

    Hi, yes ant in this case would be ant.exe

    E:\>perl -v This is perl, v5.10.1 built for MSWin32-x86-multi-thread

    So not the very latest but not ancient. Latest from ActiveState is 5.26.1.2601. I'll see if I can upgrade and notice a difference

    Edit: I'm getting the same results after upgrading to the latest version, weird that

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1212449]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (7)
As of 2024-04-24 06:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found