xz-analysis-mirror/src/scripts
Lasse Collin cff070aba6 Fix exit status of xzgrep when grepping binary files.
When grepping binary files, grep may exit before it has
read all the input. In this case, gzip -q returns 2 (eating
SIGPIPE), but xz and bzip2 show SIGPIPE as the exit status
(e.g. 141). This causes wrong exit status when grepping
xz- or bzip2-compressed binary files.

The fix checks for the special exit status that indicates SIGPIPE.
It uses kill -l which should be supported everywhere since it
is in both SUSv2 (1997) and POSIX.1-2008.

Thanks to James Buren for the bug report.
2012-02-22 14:02:34 +02:00
..
Makefile.am Build: Add options to disable individual command line tools. 2010-10-08 15:25:45 +03:00
xzdiff.1 Scripts: Add lzop (.lzo) support to xzdiff and xzgrep. 2011-03-19 13:08:22 +02:00
xzdiff.in Fix exit status of "xzdiff foo.xz bar.xz". 2011-07-31 11:01:47 +03:00
xzgrep.1 Scripts: Add lzop (.lzo) support to xzdiff and xzgrep. 2011-03-19 13:08:22 +02:00
xzgrep.in Fix exit status of xzgrep when grepping binary files. 2012-02-22 14:02:34 +02:00
xzless.1 Major man page updates. 2010-09-27 23:29:34 +03:00
xzless.in xzless: Support compressed standard input 2009-08-09 22:27:22 +03:00
xzmore.1 Major man page updates. 2010-09-27 23:29:34 +03:00
xzmore.in Major update to the xzgrep and other scripts based on 2009-07-05 22:25:17 +03:00