Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/ktruss Use 'sort -n -k 3' instead of 'sort -n +2' si...



details:   https://anonhg.NetBSD.org/src/rev/3484b3bb5c4f
branches:  trunk
changeset: 778023:3484b3bb5c4f
user:      dyoung <dyoung%NetBSD.org@localhost>
date:      Mon Mar 12 22:02:07 2012 +0000

description:
Use 'sort -n -k 3' instead of 'sort -n +2' since the former is more
portable.  The latter is not supported by Mac OS X Lion.

diffstat:

 usr.bin/ktruss/makeerrnos.sh |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (29 lines):

diff -r 6ed76834a116 -r 3484b3bb5c4f usr.bin/ktruss/makeerrnos.sh
--- a/usr.bin/ktruss/makeerrnos.sh      Mon Mar 12 21:37:12 2012 +0000
+++ b/usr.bin/ktruss/makeerrnos.sh      Mon Mar 12 22:02:07 2012 +0000
@@ -1,6 +1,6 @@
 #! /bin/sh
 #
-#      $NetBSD: makeerrnos.sh,v 1.5 2008/10/19 22:10:05 apb Exp $
+#      $NetBSD: makeerrnos.sh,v 1.6 2012/03/12 22:02:07 dyoung Exp $
 
 if [ $# -ne 3 ]; then
        echo "usage: makeerrnos.sh errno.h signal.h output"
@@ -35,7 +35,7 @@
 END {
        print " { \"0\", 0 },\n";
 }
-' | sort -n +2 >> $CFILE
+' | sort -n -k 3 >> $CFILE
 echo " { 0L, 0},
 };" >> $CFILE
 lines=`wc -l $CFILE | ${AWK} ' { print $1; } ' -`
@@ -59,7 +59,7 @@
 END {
        print " { \"0\", 0 },\n";
 }
-' | sort -n +2 >> $CFILE
+' | sort -n -k 3 >> $CFILE
 echo " { 0L, 0},
 };" >> $CFILE
 elines=`grep '{ "SIG' $CFILE | wc -l`



Home | Main Index | Thread Index | Old Index