Bug 800750 - bash 4.2.10 doesn't support =~ operator?
Summary: bash 4.2.10 doesn't support =~ operator?
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: bash
Version: 16
Hardware: Unspecified
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Roman Rakus
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-03-07 06:50 UTC by Freax
Modified: 2014-01-13 00:14 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-03-07 12:43:58 UTC
Type: ---


Attachments (Terms of Use)

Description Freax 2012-03-07 06:50:06 UTC
Description of problem:
I execute the command as follow on Bash 4.2.10 of Fedora 16:
$ [[ "abcd" =~ "a.*d" ]] && echo true
$ 

As Bash 3.2.25 of RHEL 5.4:
$ [[ "abcd" =~ "a.*d" ]] && echo true
true


Version-Release number of selected component (if applicable):
Bash 4.2.10

How reproducible:
[[ "abcd" =~ "a.*d" ]] && echo true

Steps to Reproduce:
1.
2.
3.
  
Actual results:
can echo "true"

Expected results:
doesn't echo "true"


Additional info:

Comment 1 Roman Rakus 2012-03-07 12:43:58 UTC
It was bug in previous versions. See documentation. When you use double quotes "" the pattern is matched as string.


Note You need to log in before you can comment on or make changes to this bug.