From 09ea2c99f08b0a52f5cfc6f2c66579a2a989ad16 Mon Sep 17 00:00:00 2001 From: Lasse Collin Date: Sat, 3 May 2025 15:55:31 +0300 Subject: [PATCH] Scripts: Use symbolic signal names in 'trap' command --- src/scripts/xzmore.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/scripts/xzmore.in b/src/scripts/xzmore.in index d9656720..a2bf13bc 100644 --- a/src/scripts/xzmore.in +++ b/src/scripts/xzmore.in @@ -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 -- 2.47.3