Le 04/08/2010 09:27, Davide Brini a écrit : > From the Changelog: > > This document details the changes between this version, bash-3.2-alpha, > and the previous version, bash-3.1-release. > ... > 3. New Features in Bash > ... > f. Quoting the string argument to the [[ command's =~ operator now forces > string matching, as with the other pattern-matching operators.
Yet on 3.2.39 (Fedora 10) the old "quoted regex" behaviour was still there: echo $BASH_VERSION shopt compat31 w="/home/law/bin/package: line 5: type: xx: not found" [[ $w =~ ".*not found.*" ]] && echo match 3.2.39(1)-release compat31 off match