Re: [Zutils-bug] zgrep 1.6 with -q option exits with wrong code when using wildcards
Michele Giacomoli wrote: I'm running zgrep version 1.6-4ubuntu1 (latest in Ubuntu 16.04 repos). [...] $ zcat * gzip: foobar.lz: not in gzip format gzip: foobaz.lz: not in gzip format It looks like a conflict between zutils and gzip. What is the output of 'zcat -V' and 'zgrep -V'? ___ 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
Hi Michele, Michele Giacomoli wrote: 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. I can't reproduce the problem using the latest zgrep 1.7-pre1: $ echo 'foo bar' > foobar $ echo 'foo baz' > foobaz $ zgrep -q foo * ; echo $? 0 $ zgrep -q bar * ; echo $? 0 $ zgrep -q baz * ; echo $? 0 $ lzip -v * foobar: 0.182:1, 550.00% ratio, -450.00% saved, 8 in, 44 out. foobaz: 0.182:1, 550.00% ratio, -450.00% saved, 8 in, 44 out. $ zgrep -q foo * ; echo $? 0 $ zgrep -q bar * ; echo $? 0 $ zgrep -q baz * ; echo $? 0 What is the exact configuration that failed? (Command line used, versions of grep and decompressors, compressed formats, file permissions, etc). Best regards, Antonio. ___ 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
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
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