Bash =~ regex doesn't work in 3.2.25 as in 3.1.17

2007-11-20 Thread Terry Raitt
Configuration Information [Automatically generated, do not change]: Machine: i386 OS: freebsd5.3 Compiler: cc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i386' -DCONF_OSTYPE='freebsd5.3' -DCONF_MACHTYPE='i386-portbld-freebsd5.3' -DCONF_VENDOR='portbld' -DLOCALEDIR='/usr/local/share/loc

Re: Bash =~ regex doesn't work in 3.2.25 as in 3.1.17

2007-11-20 Thread 龙海涛
try not to use the quote... [[ "$*" =~ .* ]] it seems the behiavor changed between 3.1.* and 3.2.* from the NEWS file: " Quoting the string argument to the [[ command's =~ operator now forces string matching, as with the other pattern-matching operators." somebody posted here before. On Tue,