title: 'tee' and exit status
body: <p>Is there an alternative to <a href="https://en.wikipedia.org/wiki/Tee_(command)" rel="nofollow noreferrer">tee</a> which captures <a href="https://en.wikipedia.org/wiki/Standard_streams#Standard_output_.28stdout.29" rel="nofollow noreferrer">standard output</a> and <a href="https://en.wikipedia.org/wiki/Standard_streams#Standard_error_(stderr)" rel="nofollow noreferrer">standard error</a> of the command being executed and exits with the same exit status as the processed command?</p>
  <p>Something like the following:</p>
  <pre><code>eet -a some.log -- mycommand --foo --bar
  </code></pre>
  <p>Where &quot;eet&quot; is an imaginary alternative to &quot;tee&quot; :) (<em>-a</em> means append and <code>--</code> separates the captured command). It shouldn't be hard to hack such a command, but maybe it already exists and I'm not aware of it?</p>