2008-10-24, 14:56(+08), Clark J. Wang: > In bash 3.0.14, the condition [[ file.txt =~ .*\\.txt\$ ]] returns TRUE but > in 3.2.39 it returns FALSE. But with the shopt option `compat31' set it also > returns TRUE. Is that reasonable? In the bash manual, `compat31' makes sense > only for quoted patterns. The string .*\\.txt\$ is considered to be quoted?
See question E14 in the bash FAQ. -- Stéphane