title: Cannot set tcsh exit status using a variable
body: <p>I usually use bash, but in this case I must use tcsh.  To my surprise, I cannot use a variable containing the exit status as the argument to <code>exit</code>:</p>
  
  <pre><code>[bash] tcsh
  [tcsh] set status=2
  [tcsh] echo $status
  2
  [tcsh] exit $status
  exit
  [bash] echo $?
  0
  </code></pre>
  
  <p>A literal argument to <code>exit</code> does work as expected:</p>
  
  <pre><code>[bash] tcsh
  [tcsh] exit 2
  exit
  [bash] echo $?
  2
  </code></pre>
  
  <p>What on earth is going on here?</p>