HomeFreeBSD

bsdgrep: don't ouptut matches with -c, -l, -L

Description

bsdgrep: don't ouptut matches with -c, -l, -L

Refactoring done in r317703 broke -c, -l, and -L flags implying
suppression of match printing. Fortunately this is just a matter of not
doing any printing of the resulting matches and context printing was not
broken in this refactoring.

Add some regression tests since this area may still see further
refactoring, include different context flags as well even though they
were not broken in this case.

PR: 219077
Submitted by: Kyle kevans91@ksu.edu
Reported by: markj
Reviewed by: cem, ngie
Differential Revision: https://reviews.freebsd.org/D10607

Details

Provenance
emasteAuthored on
Reviewer
cem
Differential Revision
D10607: bsdgrep(1): Don't output matches with -c, -l flag, and -L flags
Parents
rS317841: MFC r317388:
Branches
Unknown
Tags
Unknown