Bug 729587

Summary: "=~" Does not work on RHEL6
Product: Red Hat Enterprise Linux 6 Reporter: Dimitar Yordanov <dyordano>
Component: bashAssignee: Roman Rakus <rrakus>
Status: CLOSED DUPLICATE QA Contact: BaseOS QE - Apps <qe-baseos-apps>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.1CC: prc, tsmetana
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-08-10 09:36:32 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Dimitar Yordanov 2011-08-10 09:23:02 UTC
Description of problem:
"=~" Does not work on RHEL6.

Version-Release number of selected component (if applicable):
bash-4.1.2-8.el6.x86_64

How reproducible:
100%

Steps to Reproduce:

 RHEL6 - bash-4.1.2-8.el6.x86_64

 #RHN_SERVER="xmlrpc.rhn.errata.stage.redhat.com"
 #[[ $RHN_SERVER  =~ ".*errata.stage.*" ]] && echo 'OK'
 #[[ $RHN_SERVER =~ 'xmlrpc.rhn.(errata.stage.)*redhat.com' ]]  && echo 'OK'



 RHEL5 - bash-3.2-32.el5

 #RHN_SERVER="xmlrpc.rhn.errata.stage.redhat.com"
 #[[ $RHN_SERVER  =~ ".*errata.stage.*" ]] && echo 'OK'
 OK

 #[[ $RHN_SERVER =~ 'xmlrpc.rhn.(errata.stage.)*redhat.com' ]]  && echo 'OK'
 OK
  
Actual results:
Different results on RHEL5 RHEL6

Expected results:
Works on RHEL5 and RHEL6

Additional info:

Comment 1 Roman Rakus 2011-08-10 09:36:32 UTC
Please see bug #558537, technical note. There was bug in previous versions of bash which is now fixed.

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