title: Bourne Shell: Graceful way to get exit status
body: <p>Is there a more graceful way to do this (bourne shell)?</p>
  
  <pre><code>IsThereAnyApplesLeft
  applesLeft=$?
  </code></pre>
  
  <p>Normally in c or java I would do: </p>
  
  <pre><code>applesLeft=IsThereAnyApplesLeft
  </code></pre>