HomeFreeBSD

grep: turn off -w if -x is specified

Description

grep: turn off -w if -x is specified

-x overcomes -w in gnugrep, and it should here as well. Flip it off as
needed to avoid confusing other parts of grep.

(cherry picked from commit 2373acbbb77d694b997d90f3251810c6edf5d6d8)

Details

Provenance
kevansAuthored on Feb 4 2021, 9:35 PM
Parents
rG574d0dfae501: grep: fix null pattern and empty pattern file behavior
Branches
Unknown
Tags
Unknown