title: SCRIPT_PATH="${BASH_SOURCE[0]}" Bad substitution
body: <p>On Centos my script work fine. But on Debian Squeeze when I run script, I got:</p>
  
  <pre><code>cpfailover.sh: 30: Bad substitution
  </code></pre>
  
  <p>Line of script say:</p>
  
  <pre><code>SCRIPT_PATH="${BASH_SOURCE[0]}";
  </code></pre>
  
  <p>I have seen in many examples, even here, that is a correct line no. where is the problem.</p>