title: How to return exit code 0 from a failed command
body: <p>I would like to return exit code "0" from a failed command. Is there any easier way of doing this, rather than:</p>
  
  <pre><code>function a() {
    ls aaaaa 2&gt;&amp;1;
  }
  
  if ! $(a); then
    return 0
  else
    return 5
  fi
  </code></pre>