Description of Problem: Certain substitutions do not work correctly, eg ./test2: ${path_name//o/}: bad substitution Version-Release number of selected component (if applicable): RedHat 6.2, bash-1.14.7-23.6x (the substitutions work correctly with bash-2.x on RH 7.1) How Reproducible: Advanced Bash Scripting HOWTO Example 3-11. Using pattern matching to parse arbitrary strings http://www.linuxdoc.org/LDP/abs/html/variables.html#EX7 Steps to Reproduce: 1. copy the example 2. run the script 3. Actual Results: bad substitution errors Expected Results: correct substitutions Additional Information:
Use that, then. ;) Most substitution features are specific to bash >= 2.0. There's a bash2 package for 6.x as well, if you need to stay on 6.x for some reason.