opnsense-src/usr.bin/grep
Mariusz Zaborski c91cdb006e grep: fix combination of quiet and count flag
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 24c681a7f6)
2021-09-22 10:05:39 -04:00
..
tests grep: tests: stop testing for a nonexistent version of grep 2020-12-25 15:16:33 -06:00
file.c usr.bin/grep: Fix Address OOB read error 2021-02-16 09:50:31 +00:00
grep.1 grep: Fix an incorrect description of the -C flag 2021-08-15 23:01:01 +02:00
grep.c grep: Fix an incorrect description of the -C flag 2021-08-15 23:01:01 +02:00
grep.h grep: replace the internal queue with a ring buffer 2020-12-09 05:27:45 +00:00
Makefile grep: fix LINKS in Makefile 2021-01-18 11:22:48 +01:00
Makefile.depend Update Makefile.depend files 2019-12-11 17:37:53 +00:00
Makefile.depend.options Add Makefile.depend.options 2019-12-11 17:37:37 +00:00
queue.c usr.bin/grep: Fix Address OOB read error 2021-02-16 09:50:31 +00:00
util.c grep: fix combination of quiet and count flag 2021-09-22 10:05:39 -04:00
zgrep.1 Fix some regressions with the zgrep(1) wrapper. 2020-07-20 23:57:53 +00:00
zgrep.sh Fix zgrep --version 2021-04-26 15:39:54 +02:00