Hi

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 "*" wildcard.

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.

Best Regards

Michele Giacomoli

--
Mynet Internet Solutions
Tel: 0376 1590791


_______________________________________________
Zutils-bug mailing list
Zutils-bug@nongnu.org
https://lists.nongnu.org/mailman/listinfo/zutils-bug

Reply via email to