Bug 118716
Summary: | grep with --color and -f patternfile gives wrong results | ||
---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | Thomas Steudten <tomri> |
Component: | grep | Assignee: | Tim Waugh <twaugh> |
Status: | CLOSED UPSTREAM | QA Contact: | |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 9 | ||
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2004-03-22 14:21:30 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
Thomas Steudten
2004-03-19 13:51:59 UTC
This is expected. A pattern file is not equivalent to line1|line2|..., but each line is matched in turn until a match is found. No, expected - and the correct output with --color option and -f patternfile is given from grep -F --color -f patternfile. The wrong output and not expected output, is the bug above. grep -E --color -f patternfile gives definitly wrong output. Without the coloroption, you´re right. The pattern are found, and the hole inputline is printed. Please reopen and fix. |