Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 191485

Summary: regular expressions do not work in bash-3.2_p17
Product: Gentoo Linux Reporter: Arne Brutschy <abrutschy>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: major    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Arne Brutschy 2007-09-06 11:17:21 UTC
Regular expression tests do not work in 3.2_p17, they do work in 3.1_p17.
Simple tests do work, tests using metacharaters (*[]. etc) do not.

bash-3.2_p17:
# [[ "aa" =~ "b.*" ]];echo $?
1
# [[ "aa" =~ ".*" ]];echo $?
1
# [[ "aa" =~ "aa" ]];echo $?
0

bash-3.1_p17:
# [[ "aa" =~ "b.*" ]];echo $?
1
# [[ "aa" =~ ".*" ]];echo $?
0
# [[ "aa" =~ "aa" ]];echo $?
0


Reproducible: Always

Steps to Reproduce:
1. [[ "aa" =~ ".*" ]];echo $?

Actual Results:  
returns 1

Expected Results:  
return 0
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-09-06 11:19:27 UTC

*** This bug has been marked as a duplicate of bug 163527 ***