[Debian-med-packaging] Bug#918390: zstd: zstdgrep has return code 1 on normal exit

Jörg-Volker Peetz jvpeetz at web.de
Sat Jan 5 18:26:15 GMT 2019


Package: zstd
Version: 1.3.8+dfsg-2
Severity: normal

Dear Maintainer(s),

the search command zstdgrep always returns an exit code of 1 when
called with file name(s).
The logic with EXIT_CODE and CUR_EXIT_CODE in that shell script seems
bogus to me. Shouldn't something simple like

EXIT_CODE=0
...
    [ "$?" -ne 0 ] && EXIT_CODE=1
...

work?
I attach a patch which also corrects a minor nit regarding the *egrep and *fgrep
variants.

Regards,
Jörg.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: zstdgrep.patch
Type: text/x-diff
Size: 932 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/debian-med-packaging/attachments/20190105/c2473481/attachment.patch>


More information about the Debian-med-packaging mailing list