From: Lasse Collin Date: Sat, 3 May 2025 12:55:31 +0000 (+0300) Subject: Scripts: Use symbolic signal names in 'trap' command X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=048a86f5e9de2500e2231942883cb0b71ff46bf5;p=thirdparty%2Fxz.git Scripts: Use symbolic signal names in 'trap' command --- diff --git a/src/scripts/xzmore.in b/src/scripts/xzmore.in index c571913f..80cb1f9e 100644 --- a/src/scripts/xzmore.in +++ b/src/scripts/xzmore.in @@ -44,9 +44,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