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
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