title: Multiline syntax for piping a heredoc; is this portable?
body: <p>I'm familiar with this syntax: </p>
  
  <pre><code>cmd1 &lt;&lt; EOF | cmd2
  text
  EOF
  </code></pre>
  
  <p>but just discovered that bash allows me to write:</p>
  
  <pre><code>cmd1 &lt;&lt; EOF |
  text
  EOF
  cmd2
  </code></pre>
  
  <p>(the heredoc is used as input to cmd1, and the output of cmd1 is piped to cmd2).  This seems like a very odd syntax.  Is it portable?</p>