Bug 608927
| Summary: | "busybox grep -Fi" doesn't work as expected | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 5 | Reporter: | Bryan Mason <bmason> | ||||
| Component: | busybox | Assignee: | Denys Vlasenko <dvlasenk> | ||||
| Status: | CLOSED ERRATA | QA Contact: | qe-baseos-daemons | ||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | medium | ||||||
| Version: | 5.5 | CC: | azelinka, cww, jbastian, kvolny, rvokal | ||||
| Target Milestone: | rc | ||||||
| Target Release: | --- | ||||||
| Hardware: | All | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: |
The grep applet was ignoring the "-i" command line option if the "-F" option was also used. Consequent to this, the "grep -iF" command incorrectly performed a case sensitive search instead of the case insensitive one. This update applies a patch to ensure that this combination of command line options works as expected.
|
Story Points: | --- | ||||
| Clone Of: | |||||||
| : | 752134 (view as bug list) | Environment: | |||||
| Last Closed: | 2011-05-18 14:59:31 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: | |||||||
| Bug Depends On: | |||||||
| Bug Blocks: | 752134 | ||||||
| Attachments: |
|
||||||
Created attachment 427531 [details] Proposed patch Based on upstream. Verified that it implements -Fi correctly. Committed to private-bz608927-branch. The patch is trivially correct. New build with the fix: https://brewweb.devel.redhat.com/taskinfo?taskID=3230167
Technical note added. If any revisions are required, please edit the "Technical Notes" field
accordingly. All revisions will be proofread by the Engineering Content Services team.
New Contents:
The grep applet was ignoring the "-i" command line option if the "-F" option was also used. Consequent to this, the "grep -iF" command incorrectly performed a case sensitive search instead of the case insensitive one. This update applies a patch to ensure that this combination of command line options works as expected.
An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2011-0815.html |
Description of problem: The grep implementation in busybox does not support the "-F" option and the "-i" option at the same time. Version-Release number of selected component (if applicable): busybox-1.2.0-7.el5 How reproducible: 100% Steps to Reproduce: echo "Red Hat" | busybox grep -Fi "hat" Actual results: Nothing Expected results: "Red Hat" Already fixed upstream: http://git.busybox.net/busybox/commit/?id=0a2c793bd61540629d5686adb5afd2ada19d624f