Index: src/scripts/xzgrep.in |
=================================================================== |
--- src/scripts/xzgrep.in (revision 87706) |
+++ src/scripts/xzgrep.in (working copy) |
@@ -194,7 +194,8 @@ |
fi >&3 5>&- |
) |
r=$? |
- test "$xz_status" -eq 0 || test "$xz_status" -eq 2 || r=2 |
+ test "$xz_status" -eq 0 || test "$xz_status" -eq 2 \ |
+ || test "$(kill -l "$xz_status" 2> /dev/null)" = "PIPE" || r=2 |
test $res -lt $r && res=$r |
done |
exit $res |