title: Catching STDOUT and STDERR with pipes on next command as separated arguments?
body: <p>Is it possible to have a command to catch both STDOUT and STDERR as separated streams to use as arguments in the next command? </p>
  
  <p>An example of it would be.</p>
  
  <pre><code># foo outputs to stdout and stderr
  # bar recieves in -i and -j streams that could be files but in general they are streams, so it would make sence to pipe to any of this two. 
  $ foo | bar -i - -j -&amp;2 
  
  </code></pre>
  
  <p>Can I do this in bash? or in some other shell?</p>