I'm having a discussion with someone who claims that for them on Bash 4.0.33, with compat31 *off*, they are getting 3.1 behavior with quoted patterns in a =~ match.
They're saying that this: [[ a =~ "." ]] && echo match || echo no results in "match". I cannot reproduce this without doing shopt -s compat31 or removing the quotes. Are there any other circumstances that could produce this behavior? They say that shopt -p compat31 replies with "shopt -u compat31".