Jeff Chua wrote:
> With bash 3.1.17(4)-release
> # [[ "abcd" =~ "^a" ]]; echo $?
> 0
> 
> With bash 3.2.17(3)-release
> # [[ "abcd" =~ "^a" ]]; echo $?   # is this a bug???
> 1
> # [[ "abcd" =~ ^a ]]; echo $?
> 0
> 
> Is this a bug?

The behavior has been intentionally changed.

Please see Bash FAQ item E14.

Bob


_______________________________________________
Bug-bash mailing list
Bug-bash@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-bash

Reply via email to