]> git.ipfire.org Git - thirdparty/xz.git/commitdiff
Scripts: Use symbolic signal names in 'trap' command shellcheck
authorLasse Collin <lasse.collin@tukaani.org>
Sat, 3 May 2025 12:55:31 +0000 (15:55 +0300)
committerLasse Collin <lasse.collin@tukaani.org>
Wed, 1 Oct 2025 10:04:01 +0000 (13:04 +0300)
src/scripts/xzmore.in

index d9656720110cba166eaece2c4d892397754046fe..a2bf13bca06d27f4beb9cc49ecad8165de02979e 100644 (file)
@@ -46,9 +46,9 @@ else
        cb='min 1 -icanon'; ncb='icanon eof ^d'
 fi
 if test $? -eq 0 && test -n "$oldtty"; then
-       trap 'stty $oldtty 2>/dev/null; exit' 0 2 3 5 10 13 15
+       trap 'stty $oldtty 2>/dev/null; exit' EXIT INT QUIT TRAP USR1 PIPE TERM
 else
-       trap 'stty $ncb echo 2>/dev/null; exit' 0 2 3 5 10 13 15
+       trap 'stty $ncb echo 2>/dev/null; exit' EXIT INT QUIT TRAP USR1 PIPE TERM
 fi
 
 if test $# = 0; then