title: sed variables substitution with bash
body: <p>I have changed shell from <code>dash</code> to <code>bash 4.2.37</code> on Debian 7.</p>
  
  <p>Now, the following does not work any longer:</p>
  
  <pre><code>sed -i.bak "/${VARIABLE}/d" /path/file
  sed -i.bak '/'$VARIABLE'/d' /path/file
  </code></pre>
  
  <p>which yields:</p>
  
  <pre><code>sed: -e expression #1, char 0: no previous regular expression  
  </code></pre>
  
  <p>With <code>bash 3.2</code> on OS X this works as expected</p>