Bug 1150672
| Summary: | rlIsRhel '>5' not working | ||
|---|---|---|---|
| Product: | [Fedora] Fedora EPEL | Reporter: | Ondřej Pták <optak> |
| Component: | beakerlib | Assignee: | Dalibor Pospíšil <dapospis> |
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | high | Docs Contact: | |
| Priority: | high | ||
| Version: | el5 | CC: | dapospis, pmuller, psplicha |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | beakerlib-1.10-1.el5 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2014-12-17 05:34:52 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Ondřej Pták
2014-10-08 15:50:24 UTC
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. |