Just found that zgrep in Ubuntu 16.04 (version 1.6-4ubuntu1) exits with
wrong code when using -q option and searching in multiple files using
More in detail: if at least one of the files matched by the wildcard
doesn't contain the text you are looking for, the exit code is 1, while
it should be 0. If all the files matched by the wildcard contain the
text, then it correctly exits with code 0.
grep seems not to be affected by this bug.
Mynet Internet Solutions
Tel: 0376 1590791
Zutils-bug mailing list