Bug 161700
Summary: | grep -Fw fails to match anything | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Jordan Russell <jr-redhatbugs2> |
Component: | grep | Assignee: | Tim Waugh <twaugh> |
Status: | CLOSED ERRATA | QA Contact: | Mike McLean <mikem> |
Severity: | high | Docs Contact: | |
Priority: | medium | ||
Version: | 4 | ||
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | i386 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2005-07-25 09:58:01 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
Jordan Russell
2005-06-26 01:21:57 UTC
The bug appears to be dependent on the LANG setting. On Fedora Core 4: # LANG=en_US grep -Fw test testfile # LANG=en_US.utf8 grep -Fw test testfile test On Red Hat Enterprise Linux 3 (grep-2.5.1-24.4): # LANG=en_US grep -Fw test testfile test # LANG=en_US.utf8 grep -Fw test testfile test Confirmed. Thanks for reporting this. Fixed in CVS. I will make an updated FC4 package to fix this. Please try out this updated package: https://www.redhat.com/archives/fedora-test-list/2005-June/msg01097.html The new package fixes the original case, but it doesn't seem to help when the word is present in the middle of a line: # echo 'x test x' > testfile # LANG=en_US grep -Fw test testfile # LANG=en_US.utf8 grep -Fw test testfile x test x Thanks for testing. Please try out this updated package: https://www.redhat.com/archives/fedora-test-list/2005-June/msg01106.html That version works correctly (at least in all my tests thus far). Thanks. |