in reply to Re: exit EXPR?in thread exit EXPR?
... or, perhaps parsing ...
perl -e '$x = 6 ; exit( $x > 3 ? 1 : 0 )' ; echo $? [download]