title: bash "<<<" prints multiline variable on one line
body: <p>Why <code>&lt;&lt;&lt;$x</code> removes new line char?</p>
  <pre><code>&gt; cat &lt;&lt;&lt;&quot;A
  B&quot; # prints two lines (as expected)
  A
  B
  
  &gt; x=&quot;A
  B&quot;
  &gt; cat &lt;&lt;&lt;&quot;$x&quot; # prints two lines (again, as expected)
  A
  B
  
  &gt; cat &lt;&lt;&lt;$x # prints one line (..Why only one line!? I would expected two lines, or just &quot;A&quot;, or error; Who's eating up the new line?)
  A B
  </code></pre>
  <p>How come did the new line disappear? Is it convenience thingy specially for <code>&lt;&lt;&lt;</code>?
  Are there other situations where similar thing happen? (apart from <code>&lt;&lt;&lt;$var</code>)</p>
  <p>Nothing relating to new lines in here: <a href="https://www.tldp.org/LDP/abs/html/x17837.html" rel="nofollow noreferrer">https://www.tldp.org/LDP/abs/html/x17837.html</a>
  (if relevant: GNU bash, version 4.2.46(2)-release)</p>