title: Trying to embed newline in a variable in Bash
body: <p>I have</p>
  <pre><code>var=&quot;a b c&quot;
  for i in $var
  do
     p=`echo -e $p'\n'$i`
  done
  echo $p
  </code></pre>
  <p>I want the last <em>echo</em> to print:</p>
  <pre><code>a
  b
  c
  </code></pre>
  <p>Notice that I want the variable <em>p</em> to contain newlines. How do I do that?</p>