in reply to Re: EXIT code
in thread EXIT code

You mean, that is how to do it in Bourne and Bourne-ish shells. In c shells the value is in $status; in others, who knows?