zutils-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Zutils-bug] zgrep 1.6 with -q option exits with wrong code when using w


From: Michele Giacomoli
Subject: [Zutils-bug] zgrep 1.6 with -q option exits with wrong code when using wildcards
Date: Thu, 12 Oct 2017 18:31:56 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]