mirror of
https://github.com/opnsense/src.git
synced 2026-05-18 03:59:39 -04:00
When the quiet (-q) flag is provided, we don't expect any output.
Currently, the behavior is broken:
$ grep -cq flag util.c
1
$ grep -cs flag util.c
55
First of all, we print a number to stdout. Secondly, it just returns
0 or 1 (which is unexpected). GNU grep with c and q flags doesn't
print anything.
Reviewed by: markj
Differential Revision: https://reviews.freebsd.org/D31108
(cherry picked from commit
|
||
|---|---|---|
| .. | ||
| tests | ||
| file.c | ||
| grep.1 | ||
| grep.c | ||
| grep.h | ||
| Makefile | ||
| Makefile.depend | ||
| Makefile.depend.options | ||
| queue.c | ||
| util.c | ||
| zgrep.1 | ||
| zgrep.sh | ||