zutils-bug
[Top][All Lists]
Advanced

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

zgrep test suite failure


From: Tobias Geerinckx-Rice
Subject: zgrep test suite failure
Date: Thu, 09 Jul 2020 19:26:02 +0200

Hullo,

Thank you for maintaining this package!

The following two tests fail for me:

   "${ZGREP}" -N -L "GNU" in.$i || test_failed $LINENO $i
   "${ZGREP}" -N -L "nx_pattern" in.$i > /dev/null &&
       test_failed $LINENO $i

AFAICT because the return values are the opposite of what the test suite expects:

 λ echo GNU | bzip2 > foo.bz2
 λ zgrep -L -N GNU foo.bz2; echo $?
 foo.bz2
 1
 λ zgrep -L -N nx_pattern foo.bz2; echo $?
 0

I.e. passing ‘-L’ also ‘flips’ the return value.

I can't find ‘-L’s effect on exit status (if any) explicitly documented anywhere, so I don't know who's correct.

This happens with both version 1.8 and 1.9 of zutils on GNU Guix. Let me know if there's anything more I can do.

Kind regards,

T G-R

Attachment: signature.asc
Description: PGP signature


reply via email to

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