title: String replacement in bash - bad substitution error
body: <p>I newbie in bash scripting but i don't uderstand why it's not work</p>
  
  <pre><code>#!/bin/bash
  foo=foobarfoobar
  echo ${foo//bar/baz}
  </code></pre>
  
  <p>bad substitution error on line 3</p>