Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/bin/ksh The Solaris 7 "/usr/{, xpg4/}bin/sort"s expect whites...



details:   https://anonhg.NetBSD.org/src/rev/38159d8646d7
branches:  trunk
changeset: 761314:38159d8646d7
user:      hauke <hauke%NetBSD.org@localhost>
date:      Sun Jan 23 17:11:55 2011 +0000

description:
The Solaris 7 "/usr/{,xpg4/}bin/sort"s expect whitespace between the "-k"
option and its argument.

diffstat:

 bin/ksh/siglist.sh |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r 1a37d625216d -r 38159d8646d7 bin/ksh/siglist.sh
--- a/bin/ksh/siglist.sh        Sun Jan 23 15:51:07 2011 +0000
+++ b/bin/ksh/siglist.sh        Sun Jan 23 17:11:55 2011 +0000
@@ -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; }
        {



Home | Main Index | Thread Index | Old Index