Bourne Shell: Graceful way to get exit status

Posted by sixtyfootersdude on Stack Overflow See other posts from Stack Overflow or by sixtyfootersdude
Published on 2010-04-16T16:31:11Z Indexed on 2010/04/16 16:33 UTC
Read the original article Hit count: 357

Filed under:
|
|
|

Is there a more graceful way to do this (bourne shell)?

IsThereAnyApplesLeft
applesLeft=$?

Normally in c or java I would do:

applesLeft=IsThereAnyApplesLeft

© Stack Overflow or respective owner

Related posts about bourne

Related posts about script