On Thu, 17 May 2007, Bob Proulx wrote:
The behavior has been intentionally changed.
Please see Bash FAQ item E14.
Ok, thanks. I should have read the FAQ first.
Thanks,
Jeff.
___
Bug-bash mailing list
Bug-bash@gnu.org
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
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?
It is the intended behavior. See question E14 in the latest bash FAQ
(reproduced below). There has