Le 03/08/2010 17:12, Marc Herbert a écrit :
This was accidentally working in old bash versions, not anymore in
Fedora 13's bash 4.1.7. Now using proper prefix matching instead of
the previous regex matching disguised as pattern matching.
This broke due to a documented change in bash. More details here:
http://thread.gmane.org/gmane.comp.shells.bash.bugs/15080
Or better: do not bother reading and avoid advanced, non-portable
and evolving bash features when basic features are enough (= apply my
patch).
Note: even without considering this change in bash, the previous code was
confusing patterns and regular expressions and working by chance.