Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^3: Effect of redirecting output to /dev/null on $? value

by ikegami (Patriarch)
on Aug 05, 2020 at 04:03 UTC ( [id://11120308]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Effect of redirecting output to /dev/null on $? value
in thread Effect of redirecting output to /dev/null on $? value

That's horrible advice.

The OP is complaining about errors being misreported, and you introduce a new such error.

exec failures should not appears as exit code from a successfully launched child. Even system and open3 get that right. (They use a close-on-exec pipe to communicate the errno of failures to the parent.)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (None)
    As of 2024-04-25 04:02 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      No recent polls found