freebsd-dev/usr.bin/grep
Eric van Gyzen 63c8336d4d zgrep: fix exit status with multiple files
zgrep should exit with success when given multiple files and the
pattern is found in at least one file.  Prior to this change,
it would exit with success only if the pattern was found in _every_ file.

Reviewed by:	dab ngie
MFC after:	2 weeks
Sponsored by:	Dell EMC Isilon
Differential Revision:	https://reviews.freebsd.org/D26616
2020-10-01 21:48:22 +00:00
..
tests bsdgrep(1): add some basic tests for some GNU Extension support 2019-09-03 18:32:29 +00:00
file.c Fix -Wpointer-sign warnings in usr.bin/grep 2020-09-21 09:03:37 +00:00
grep.1 grep(1): correct typos for 'if a name patches' to 'if a name matches' 2020-08-07 16:01:05 +00:00
grep.c bsdgrep: switch to libregex for GNU_GREP_COMPAT 2020-08-04 02:47:24 +00:00
grep.h bsdgrep(1): Slooowly peel away the chunky onion 2018-06-08 01:25:07 +00:00
Makefile Always install usr.bin/grep as grep when bootstrapping 2020-08-07 16:04:01 +00: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
util.c bsdgrep(1): various fixes of empty pattern/exit code/-c behavior 2019-09-25 17:14:43 +00:00
zgrep.1 Fix some regressions with the zgrep(1) wrapper. 2020-07-20 23:57:53 +00:00
zgrep.sh zgrep: fix exit status with multiple files 2020-10-01 21:48:22 +00:00