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

2017-10-12 Thread Michele Giacomoli

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


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

2017-10-13 Thread Michele Giacomoli

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


Re: [Zutils-bug] zgrep 1.6 with -q option exits with wrong code when using wildcards

2017-10-19 Thread Michele Giacomoli

Sorry Antonio, didn't see your reply.

$ zcat -V
gzip 1.6
Copyright (C) 2007, 2010, 2011 Free Software Foundation, Inc.
Copyright (C) 1993 Jean-loup Gailly.
This is free software.  You may redistribute copies of it under the terms of
the GNU General Public License .
There is NO WARRANTY, to the extent permitted by law.

Written by Jean-loup Gailly.


$ zgrep -V
zgrep (gzip) 1.6
Copyright (C) 2010-2013 Free Software Foundation, Inc.
This is free software.  You may redistribute copies of it under the terms of
the GNU General Public License .
There is NO WARRANTY, to the extent permitted by law.

Written by Jean-loup Gailly.

Best Regards

Michele

--
Mynet Internet Solutions
Tel: 0376 1590791


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