title: redirecting stdin _and_ stdout to a pipe
body: <p>I would like to run a program "A", have its output go to the input to another program "B", as well as stdin going to intput of "B".  If program "A" closes, I'd like "B" to continue running.</p>
  
  <p>I can redirect A output to B input easily:<br>
  ./a | ./b</p>
  
  <p>And I can combine stderr into the output if I'd like:<br>
  ./a 2>&amp;1 | ./b</p>
  
  <p>But I can't figure out how to combine stdin into the output.  My guess would be:<br>
  ./a 0>&amp;1 | ./b<br>
  but it doesn't work.</p>
  
  <p>Here's a test that doesn't require us to rewrite up any test programs:  </p>
  
  <pre><code>$ echo ls 0&gt;&amp;1 | /bin/sh -i
  $ a  b  info.txt
  $
  /bin/sh: Cannot set tty process group (No such process)
  </code></pre>
  
  <p>If possible, I'd like to do this using only bash redirection on the command line (I don't want to write a C program to fork off child processes and do anything complicated everytime I want to do some redirection of stdin to a pipe).</p>