]> git.cworth.org Git - gzip/blobdiff - zdiff.in
Imported Debian patch 1.3.5-10
[gzip] / zdiff.in
index 42aca8174283a50b5754499f9e669923404b6535..819019286637e61c5510578617e180617be0822b 100755 (executable)
--- a/zdiff.in
+++ b/zdiff.in
@@ -47,12 +47,12 @@ elif test $# -eq 2; then
                *[-.]gz* | *[-.][zZ] | *.t[ga]z)
                        F=`echo "$2" | sed 's|.*/||;s|[-.][zZtga]*||'`
                        set -C
-                       trap 'rm -f /tmp/"$F".$$; exit 2' 1 2 13 15 0
+                       trap 'rm -f /tmp/"$F".$$; exit 2' HUP INT PIPE TERM 0
                        gzip -cdfq "$2" > /tmp/"$F".$$ || exit
                         gzip -cdfq "$1" | $comp $OPTIONS - /tmp/"$F".$$
                         STAT="$?"
                        /bin/rm -f /tmp/"$F".$$ || STAT=2
-                       trap 1 2 13 15 0
+                       trap - HUP INT PIPE TERM 0
                        exit $STAT;;
 
                 *)      gzip -cdfq "$1" | $comp $OPTIONS - "$2";;