X-Git-Url: http://ncurses.scripts.mit.edu/?a=blobdiff_plain;f=progs%2FMKtermsort.sh;h=4e58c50a03a2405d647dbf8b512cb5c33d381060;hb=HEAD;hp=ca3232da4bdfc377856bc0797ec44ee234ab8e89;hpb=7f4b9f390624835ceb0849965a7f6ff2dcb39d00;p=ncurses.git diff --git a/progs/MKtermsort.sh b/progs/MKtermsort.sh index ca3232da..4e58c50a 100755 --- a/progs/MKtermsort.sh +++ b/progs/MKtermsort.sh @@ -1,10 +1,10 @@ #!/bin/sh -# $Id: MKtermsort.sh,v 1.16 2021/04/18 20:12:50 tom Exp $ +# $Id: MKtermsort.sh,v 1.17 2022/02/05 20:39:41 tom Exp $ # # MKtermsort.sh -- generate indirection vectors for the various sort methods # ############################################################################## -# Copyright 2020,2021 Thomas E. Dickey # +# Copyright 2020-2021,2022 Thomas E. Dickey # # Copyright 1998-2015,2017 Free Software Foundation, Inc. # # # # Permission is hereby granted, free of charge, to any person obtaining a # @@ -47,7 +47,7 @@ AWK=${1-awk} DATA=${2-../include/Caps} data=data$$ -trap 'rm -f $data' 1 2 3 15 +trap 'rm -f $data; exit 1' 1 2 3 15 sed -e 's/[ ][ ]*/ /g' < "$DATA" >$data DATA=$data