Bug 517627
Summary: | -w option ignored for files read after binary file, if -F option specified | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Robin Green <greenrd> |
Component: | grep | Assignee: | Jaroslav Škarvada <jskarvad> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | medium | Docs Contact: | |
Priority: | low | ||
Version: | 12 | CC: | jskarvad, kasal, lkundrak, pbonzini |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | i686 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2010-04-13 10:32:02 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: |
Description
Robin Green
2009-08-15 10:41:55 UTC
This bug seems to only happen when the binary file contains a match. This bug appears to have been reported against 'rawhide' during the Fedora 12 development cycle. Changing version to '12'. More information and reason for this action is here: http://fedoraproject.org/wiki/BugZappers/HouseKeeping This bug is not present in F13, in grep-2.5.4-1.fc13.i686. However, it is still present in F12, in grep-2.5.3-6.fc12.i686 I cannot reproduce it with F12 on x86_64: LC_ALL=C grep -Fw GNU /bin/ls <(echo GNUisance) Binary file /bin/ls matches (There's no "hi" in the 64-bit /bin/ls) Strange - the bug occurs for 2-character words, but not for a longer word I tried. I suggest you use strings -a -2 to find a 2-character word, or copy the /bin/ls from a 32-bit system and use that. Nada: $ grep -Fw hX /bin/ls <(echo hXX) Binary file /bin/ls matches $ LC_ALL=C grep -Fw hX /bin/ls <(echo hXX) Binary file /bin/ls matches $ Maybe the bug only occurs on i686 then? Or only on 32-bit platforms? Robin, do you try with latest grep-2.6.3-1.fc12 (recently pushed to stable)? https://admin.fedoraproject.org/updates/grep-2.6.3-1.fc12 (In reply to comment #8) > Robin, do you try with latest grep-2.6.3-1.fc12 (recently pushed to stable)? Just tried it - bug does not occur with that. Thanks! |