Description of problem: rlIsRhel '>5' on rhel-5 shoud return 0, but currently return 1 Version-Release number of selected component (if applicable): beakerlib-1.9-5.el5 How reproducible: Always on RHEL-5 Steps to Reproduce: 1. source /usr/share/beakerlib/beakerlib.sh 2. rlIsRHEL '>5' && echo FAIL || echo PASS Actual results: FAIL Expected results: PASS Additional info: I was unable to reproduce this on F20 with rlIsFedora '>20' (beakerlib-1.9-3.fc20)
Wrong description in 1st comment, correct is: rlIsRhel '>5' on rhel-5 shoud return 1, but currently return 0
Apparently the problem is limited to bash v3. While on newer versions [[ "5" =~ \. ]] returns 1, on bash v3 it needs to be [[ "5" =~ \\\. ]]. Compatible solution seems to be [[ "5" =~ [.] ]].
fixed by https://git.fedorahosted.org/cgit/beakerlib.git/commit/?id=3cbfb525b6de1a147a2fc98c5f12c965e3bd1946
beakerlib-1.9-6.el5 has been submitted as an update for Fedora EPEL 5. https://admin.fedoraproject.org/updates/beakerlib-1.9-6.el5
beakerlib-1.10-1.el5 has been submitted as an update for Fedora EPEL 5. https://admin.fedoraproject.org/updates/beakerlib-1.10-1.el5
beakerlib-1.10-1.el5 has been pushed to the Fedora EPEL 5 stable repository. If problems still persist, please make note of it in this bug report.