Hide Forgot
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:
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 ***