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?)
** Changed in: bash (Ubuntu)
Status: Unconfirmed = Needs Info
--
bash regexes no longer working in Feisty
Well, it looks like that did affect it, according to a
http://en.wikipedia.org/wiki/Bash#In-process_regular_expressions
Basically, the single quotes surrounding the regex become part of the
regex. So the above code becomes:
if [[ foo.tex =~ ^(.*)\.tex$ ]]
then
The release notes at http://www.ubuntu.com/getubuntu/releasenotes/704 do
not mention anything about an upgrade to Bash 3.2. They should be
amended to note this.
** Summary changed:
- bash regexes no longer working in Feisty
+ Feisty Release Notes should note upgrade to Bash 3.2 changes regex