title: Capturing multiple line output into a Bash variable
body: <p>I've got a script 'myscript' that outputs the following:</p>
  
  <pre><code>abc
  def
  ghi
  </code></pre>
  
  <p>in another script, I call:</p>
  
  <pre><code>declare RESULT=$(./myscript)
  </code></pre>
  
  <p>and <code>$RESULT</code> gets the value</p>
  
  <pre><code>abc def ghi
  </code></pre>
  
  <p>Is there a way to store the result either with the newlines, or with '\n' character so I can output it with '<code>echo -e</code>'?</p>