title: How do I "read" a variable on a while loop
body: <p>How can I read from variable with <code>while read line</code>?</p>
  
  <p>For example:</p>
  
  <pre><code>the_list=$(..code..)
  
  while read line
  do
          echo $line
  
  done &lt; $the_list
  </code></pre>
  
  <p>using the code above gives me error:</p>
  
  <pre><code>./copy.sh: line 25: $the_list: ambiguous redirect
  </code></pre>