title: bash read stdin after piped input
body: <p>I am having trouble getting bash to relinquish control of the pipe to stdin. I want to pass in the username and password to a program and then have that same program read from stdin rather than the pipe! This is what I have tried:</p>
  
  <pre><code>alias pandora='echo -e "$(cat ~/.musik/name)\n$(cat ~/.musik/pass | base64 --decode)" | pianobar'
  </code></pre>
  
  <p>That's in my <code>.bashrc</code>. First, it cat's the username/password files and then pipes that into <code>pianobar</code> (pandora in the terminal). The username and password get in there, however, pianobar is expecting more input. Pianobar is asking for a number (to be able to play, for example, station <em>12</em>), but when I type and hit enter, nothing happens because for some reason, it isn't expecting it to come from there.</p>
  
  <p>How do I get the pipe to "relinquish" control?</p>
  
  <p>Note: I have also tried</p>
  
  <pre><code>echo "$(cat ~/.musik/name)
  $(cat ~/.musik/pass | base64 --decode) 
  " &gt;&gt;&gt; pianobar
  </code></pre>