diff --git a/bin/ksh/siglist.sh b/bin/ksh/siglist.sh index 915dce5854be..a627a3d0ff94 100755 --- a/bin/ksh/siglist.sh +++ b/bin/ksh/siglist.sh @@ -1,5 +1,5 @@ #!/bin/sh -# $NetBSD: siglist.sh,v 1.11 2016/03/17 13:54:31 christos Exp $ +# $NetBSD: siglist.sh,v 1.12 2016/03/17 13:59:02 christos Exp $ # # Script to generate a sorted, complete list of signals, suitable # for inclusion in trap.c as array initializer. @@ -26,7 +26,7 @@ CPP="${1-cc -E}" { QwErTy .signal = SIG\1 , .name = "\1", .mess = "\2" },\ #endif/') > $in # work around for gcc 5 -$CPP $in | grep -v '^#' | tr -d '\n' | sed 's/},/},\ +$CPP $in | grep -v '^#' | tr -d '\n' | ${SED} 's/},/},\ /g' > $out ${SED} -n 's/{ QwErTy/{/p' < $out | ${AWK} '{print NR, $0}' | sort -k 5n -k 1n | ${SED} 's/^[0-9]* //' |