title: for loop not working when passed inside a string as an argument to eval
body: <p>The following code when run as an individual command in shell script gives the expected result :</p>
  <pre><code>for x in This is good; do echo $x; done
  </code></pre>
  <p><strong>[OUTPUT]</strong></p>
  <pre class="lang-none prettyprint-override"><code>This
  is
  good
  </code></pre>
  <p>However when i pass it inside a string to Eval for some reason x is not being initialised</p>
  <pre><code>cmd = &quot; for x in This is good; do echo $x ; done&quot;
  eval $cmd
  </code></pre>
  <p><strong>[OUTPUT]</strong></p>
  <pre><code>//Three blank lines
  </code></pre>
  <p>Why is x not being initialised ?</p>