bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bash=~ bug or feature


From: Bob Proulx
Subject: Re: bash=~ bug or feature
Date: Thu, 17 May 2007 09:36:13 -0600
User-agent: Mutt/1.5.9i

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]