Your message dated Tue, 20 Jun 2006 14:18:17 -0700 with message-id <[EMAIL PROTECTED]> and subject line Bug#292896: fixed in gzip 1.3.5-14 has caused the attached Bug report to be marked as done.
This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what I am talking about this indicates a serious mail system misconfiguration somewhere. Please contact me immediately.) Debian bug tracking system administrator (administrator, Debian Bugs database)
--- Begin Message ---Package: grep Version: 2.5.1.ds1-4 Severity: normal Tags: patch The bulk of zgrep's work is done by this loop: for i do gzip -cdfq "$i" | if test $files_with_matches -eq 1; then $grep $opt "$pat" > /dev/null && echo $i elif test $files_without_matches -eq 1; then $grep $opt "$pat" > /dev/null || echo $i elif test $with_filename -eq 0 && { test $# -eq 1 || test $no_filename -eq 1; }; then $grep $opt "$pat" else i=`echo $i | sed -e 's/|/\\\\|/g'` if test $with_filename -eq 1; then sed_script="s|^[^:]*:|${i}:|" else sed_script="s|^|${i}:|" fi $grep $opt "$pat" | sed "$sed_script" fi r=$? test $res -lt $r && res=$r done If the else clause of the if is taken, then grep's return code is lost. The patch below fixes this, assuming that /bin/sh is bash, which I guess is safe for Debian, but perhaps not upstream. I spent quite a while but didn't manage to find a more general fix. --- /bin/zgrep 2004-07-24 09:30:47.000000000 +0200 +++ zgrep 2005-01-30 23:02:13.000000000 +0100 @@ -107,6 +107,7 @@ sed_script="s|^|${i}:|" fi $grep $opt "$pat" | sed "$sed_script" + exit ${PIPESTATUS[0]} fi r=$? test $res -lt $r && res=$r -- System Information: Debian Release: 3.1 APT prefers testing APT policy: (500, 'testing') Architecture: i386 (i686) Kernel: Linux 2.6.8 Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) Versions of packages grep depends on: ii libc6 2.3.2.ds1-20 GNU C Library: Shared libraries an -- no debconf information
--- End Message ---
--- Begin Message ---Source: gzip Source-Version: 1.3.5-14 We believe that the bug you reported is fixed in the latest version of gzip, which is due to be installed in the Debian FTP archive: gzip_1.3.5-14.diff.gz to pool/main/g/gzip/gzip_1.3.5-14.diff.gz gzip_1.3.5-14.dsc to pool/main/g/gzip/gzip_1.3.5-14.dsc gzip_1.3.5-14_i386.deb to pool/main/g/gzip/gzip_1.3.5-14_i386.deb A summary of the changes between this version and the previous one is attached. Thank you for reporting the bug, which will now be closed. If you have further comments please address them to [EMAIL PROTECTED], and the maintainer will reopen the bug report if appropriate. Debian distribution maintenance software pp. Bdale Garbee <[EMAIL PROTECTED]> (supplier of updated gzip package) (This message was generated automatically at their request; if you believe that there is a problem with it please contact the archive administrators by mailing [EMAIL PROTECTED]) -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Format: 1.7 Date: Tue, 20 Jun 2006 15:02:27 -0600 Source: gzip Binary: gzip Architecture: source i386 Version: 1.3.5-14 Distribution: unstable Urgency: medium Maintainer: Bdale Garbee <[EMAIL PROTECTED]> Changed-By: Bdale Garbee <[EMAIL PROTECTED]> Description: gzip - The GNU compression utility Closes: 190442 192891 292896 334540 366660 Changes: gzip (1.3.5-14) unstable; urgency=medium . * update section to match override * patch from Matthew Chapman to avoid deleting input file before we're sure the output file has been written without errors, closes: #366660 * patch from Reuben Thomas to fix zgrep return code, closes: #292896, #192891, #190442 * enable gzexe compressed files to work on systems where tempfile is not available while retaining preference for tempfile, closes: #334540 Files: e59d87f1f1052a104cf873c997300154 552 utils required gzip_1.3.5-14.dsc e73d2723c9d19c593fb5b049415f5ddf 58134 utils required gzip_1.3.5-14.diff.gz 7bbf10aa5db9b30709f3469f2ccb426e 73182 utils required gzip_1.3.5-14_i386.deb -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (GNU/Linux) iD8DBQFEmGMmZKfAp/LPAagRAjudAKCG0vH/Fz4pVvot3SZDBgjISa3w9gCeMjMK TJ8JpUukpBqjj21g3OGvUac= =XVQI -----END PGP SIGNATURE-----
--- End Message ---

