Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101209 Fedora/3.1.7-0.35.b3pre.fc14 Thunderbird/3.1.7
Le 14/02/2011 15:03, Dennis Williamson a écrit :
> 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?
I think this qualifies:
http://thread.gmane.org/gmane.comp.shells.bash.bugs/15080/focus=15107