Bug 52569 - string parsing: bad substitution bug
string parsing: bad substitution bug
Product: Red Hat Linux
Classification: Retired
Component: bash (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Bernhard Rosenkraenzer
Aaron Brown
Depends On:
  Show dependency treegraph
Reported: 2001-08-25 08:02 EDT by Leonard den Ottolander
Modified: 2007-04-18 12:36 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2001-08-25 08:02:42 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Leonard den Ottolander 2001-08-25 08:02:38 EDT
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

Steps to Reproduce:
1. copy the example
2. run the script

Actual Results:
bad substitution errors 

Expected Results:
correct substitutions

Additional Information:
Comment 1 Bernhard Rosenkraenzer 2001-08-27 06:35:56 EDT
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 

Note You need to log in before you can comment on or make changes to this bug.