]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
zgrep: fix exit status with multiple files
authorEric van Gyzen <vangyzen@FreeBSD.org>
Thu, 1 Oct 2020 21:48:22 +0000 (21:48 +0000)
committerKyle Evans <kevans@FreeBSD.org>
Thu, 11 Feb 2021 15:19:13 +0000 (09:19 -0600)
commit07c84bb078e1974be265fc921481ee1608684103
tree671ca3802df5d35668534720632b9ae6e5314597
parenta7c68340584c942792188ad50593d4ef15cc8982
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.

(cherry picked from commit 63c8336d4de15085d50c9d8c855cdc97ee018a04)
contrib/netbsd-tests/usr.bin/grep/t_grep.sh
usr.bin/grep/zgrep.sh