Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • > What is the "normal exit value of a process"? Without qualifying that, any documented success or error code can be deemed normal.

    Wrong.
    • My guess was 0, though EXIT_SUCCESS would also be correct, right?

      I'm assuming you saw "process" and thought "function", which can indeed vary wildly.

      • > My guess was 0, though EXIT_SUCCESS would also be correct, right?

        Correct. There are many possible failures but only one possible success: EXIT_SUCCESS from , and in Unix/Linux EXIT_SUCCESS is defined to be zero. Easily testable in shell by:

        ls /none/such; echo $?
        ls /; echo $?