regexp matching broken in bash-3.2.x?

2007-10-27 Thread Pavel Gorshkov
Configuration Information [Automatically generated, do not change]:
Machine: i386
OS: freebsd6.2
Compiler: gcc
Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='i386' 
-DCONF_OSTYPE='freebsd6.2' -DCONF_MACHTYPE='i386-unknown-freebsd6.2' 
-DCONF_VENDOR='unknown' -DLOCALEDIR='/usr/share/locale' -DPACKAGE='bash' 
-DSHELL -DHAVE_CONFIG_H   -I.  -I. -I./include -I./lib   -g -O2
uname output: FreeBSD localhost 6.2-STABLE FreeBSD 6.2-STABLE #17: Wed Oct 10 
20:06:05 MSD 2007 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/DESKTOP  i386
Machine Type: i386-unknown-freebsd6.2

Bash Version: 3.2
Patch Level: 25
Release Status: release

Description:
Regexp matching seems to be broken since 3.2.0.
Repeat-By:
The following used to work in bash-3.1:
$ [[ test =~ 't.*t' ]]; echo $?
1




Re: regexp matching broken in bash-3.2.x?

2007-10-27 Thread Bernd Eggink

Pavel Gorshkov schrieb:


Description:
Regexp matching seems to be broken since 3.2.0.
Repeat-By:
The following used to work in bash-3.1:
$ [[ test =~ 't.*t' ]]; echo $?
1


It works without the quotes. Looks like they are taken literally instead of 
being removed. I, too, think it's a bug, as according to  the docs, quote 
removal should be performed on the words between [[ and ]].


Regards,
Bernd

--
Bernd Eggink
[EMAIL PROTECTED]
http://sudrala.de