Hardy Release Notes should note upgrade to Bash 3.2 changes regex syntax
Bug #109931 reported by
Robert
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu Website - OBSOLETE |
Invalid
|
Undecided
|
Unassigned | ||
bash (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
Bug Description
Binary package hint: bash
The following regular expression should work in bash (and used to work in Edgy), but no longer does:
if [[ "foo.tex" =~ '^(.*)\.tex$' ]]
then
file=
echo "File is: $file"
else
echo "Not a TeX file"
fi
It appears that regular expressions using the dot, star, carat and dollar-sign metacharacters no longer work.
Changed in ubuntu-website: | |
assignee: | robrwo → ubuntu-website |
To post a comment you must log in.
The feisty move upgraded bash from Bash 3.1 to 3.2. Would this have had an effect on your script? (i.e. has the regex stuff been changed in the newer bash?)