e1afa740b3
Given an empty pattern (i.e. grep "" A B), bsdgrep(1) would previously exit() with the appropriate exit code upon encountering an empty file. Likely intended as an optimization, but this behavior is technically incorrect since an empty pattern should match every line. PR: 220924 Reviewed by: emaste, cem (earlier version), ngie Approved by: emaste (mentor) Differential Revision: https://reviews.freebsd.org/D11698 |
||
---|---|---|
.. | ||
nls | ||
regex | ||
tests | ||
file.c | ||
grep.1 | ||
grep.c | ||
grep.h | ||
Makefile | ||
Makefile.depend | ||
queue.c | ||
util.c |