in reply to Re: Problem in System function
in thread Problem in System function

perl -le'print 256 >> 8' returns 1 so 1 is failure or success?

Replies are listed 'Best First'.
3Re: Problem in System function
by jeffa (Bishop) on May 25, 2004 at 13:49 UTC

    You can only say one thing about a return code of 1 ... it is not 0.

    Zero is conventionally "success" ... it means "there was no error to be reported" ... hence, zero.

    Everything else is treated as Not 0 ... it could mean failure, it could mean a warning, it could mean success. It is up to the person(s) who wrote the code you are running. This is why i think it is vital to capture STDERR as well.

    jeffa

    L-LL-L--L-LL-L--L-LL-L--
    -R--R-RR-R--R-RR-R--R-RR
    B--B--B--B--B--B--B--B--
    H---H---H---H---H---H---
    (the triplet paradiddle with high-hat)
    
Re: Re: Re: Problem in System function
by exussum0 (Vicar) on May 25, 2004 at 14:33 UTC