title: exec line from file in bash
body: <p>I'm trying to read commands from a text file and execute each line from a bash script.</p>
  
  <pre><code>#!/bin/bash
  while read line;    do 
       $line
  done &lt; "commands.txt"
  </code></pre>
  
  <p>In some cases, if <code>$line</code> contains commands that are meant to run in background, eg <code>command 2&gt;&amp;1 &amp;</code> they will not start in background, and will run in the current script context.</p>
  
  <p>Any ideea why?</p>