X-Git-Url: http://ncurses.scripts.mit.edu/?a=blobdiff_plain;ds=sidebyside;f=ncurses%2Ftinfo%2FMKkeys_list.sh;h=0facfbb813a2fb314a719f1a725b28fabfdf870a;hb=HEAD;hp=158e34d25538df5fbbe4fe62da1448e3467c9b63;hpb=ade723c546e6559187580c695f7f4637eac13125;p=ncurses.git diff --git a/ncurses/tinfo/MKkeys_list.sh b/ncurses/tinfo/MKkeys_list.sh index 158e34d2..05ac8cf6 100755 --- a/ncurses/tinfo/MKkeys_list.sh +++ b/ncurses/tinfo/MKkeys_list.sh @@ -1,7 +1,8 @@ #! /bin/sh -# $Id: MKkeys_list.sh,v 1.6 2019/03/02 22:47:33 tom Exp $ +# $Id: MKkeys_list.sh,v 1.9 2024/01/19 12:26:30 tom Exp $ ############################################################################## -# Copyright (c) 2001-2017,2019 Free Software Foundation, Inc. # +# Copyright 2019-2022,2024 Thomas E. Dickey # +# Copyright 2001-2003,2017 Free Software Foundation, Inc. # # # # Permission is hereby granted, free of charge, to any person obtaining a # # copy of this software and associated documentation files (the "Software"), # @@ -35,6 +36,7 @@ # Extract function-key names from the Caps file # : ${AWK-awk} +: ${USE_SIGWINCH-0} if test $# != 0 then DATA="$*" @@ -43,7 +45,8 @@ else fi data=data$$ -trap 'rm -f $data' EXIT INT QUIT TERM HUP +trap 'rm -f $data; exit 1' 1 2 3 15 +trap 'rm -f $data' 0 cat $DATA | sed -e 's/[ ][ ]*/ /g' >$data cat <