Module Name: src Committed By: hauke Date: Sun Jan 23 17:11:55 UTC 2011
Modified Files: src/bin/ksh: siglist.sh Log Message: The Solaris 7 "/usr/{,xpg4/}bin/sort"s expect whitespace between the "-k" option and its argument. To generate a diff of this commit: cvs rdiff -u -r1.8 -r1.9 src/bin/ksh/siglist.sh Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/bin/ksh/siglist.sh diff -u src/bin/ksh/siglist.sh:1.8 src/bin/ksh/siglist.sh:1.9 --- src/bin/ksh/siglist.sh:1.8 Sat Oct 25 22:18:15 2008 +++ src/bin/ksh/siglist.sh Sun Jan 23 17:11:55 2011 @@ -1,5 +1,5 @@ #!/bin/sh -# $NetBSD: siglist.sh,v 1.8 2008/10/25 22:18:15 apb Exp $ +# $NetBSD: siglist.sh,v 1.9 2011/01/23 17:11:55 hauke Exp $ # # Script to generate a sorted, complete list of signals, suitable # for inclusion in trap.c as array initializer. @@ -26,7 +26,7 @@ { QwErTy .signal = SIG\1 , .name = "\1", .mess = "\2" },\ #endif/') > $in $CPP $in > $out -${SED} -n 's/{ QwErTy/{/p' < $out | ${AWK} '{print NR, $0}' | sort -k5n -k1n | +${SED} -n 's/{ QwErTy/{/p' < $out | ${AWK} '{print NR, $0}' | sort -k 5n -k 1n | ${SED} 's/^[0-9]* //' | ${AWK} 'BEGIN { last=0; nsigs=0; } {