Configuration Information [Automatically generated, do not change]: Machine: i486 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i486' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i486-pc-linux-gnu' -DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/locale' -DPACKAGE='bash' -DSHELL -DHAVE_CONFIG_H -I. -I../bash -I../bash/include -I../bash/lib -g -O2 -Wall uname output: Linux pravetz 2.6.22-14-generic #1 SMP Fri Feb 1 04:59:50 UTC 2008 i686 GNU/Linux Machine Type: i486-pc-linux-gnu
Bash Version: 3.2 Patch Level: 33 Release Status: release Description: If a regular expression is quoted, it won't match the string. This is a change in behavior from 3.1.0 to 3.2.0. It is still present in 3.2.33. Repeat-By: Execute: $ test="target/test"; [[ $test =~ "^target/" ]] && echo yes It returns 'yes' in bash 3.1.0 and nothing in 3.2.x Unquoted regexps do work in bash 3.1.0 and 3.2.x: $ test="target/test"; [[ $test =~ ^target/ ]] && echo yes It returns 'yes' in bash 3.1.0 and 3.2.x