Source-Changes-HG archive

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

[src/trunk]: src/bin/sh Sort options with long names that differ only by char...



details:   https://anonhg.NetBSD.org/src/rev/25fb3b7fa6d2
branches:  trunk
changeset: 827862:25fb3b7fa6d2
user:      kre <kre%NetBSD.org@localhost>
date:      Wed Nov 15 09:21:19 2017 +0000

description:
Sort options with long names that differ only by char case in
the same order that option flags with a similar property are sorted.
This corresponds with the change made to the sort order of the short
names made in the previous update (1.4).

Right now, this change makes no difference at all, as there are no
long option names that differ only in char case (yet.)

diffstat:

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

diffs (20 lines):

diff -r ae04db0ba0c2 -r 25fb3b7fa6d2 bin/sh/mkoptions.sh
--- a/bin/sh/mkoptions.sh       Wed Nov 15 09:13:26 2017 +0000
+++ b/bin/sh/mkoptions.sh       Wed Nov 15 09:21:19 2017 +0000
@@ -1,6 +1,6 @@
 #! /bin/sh
 
-# $NetBSD: mkoptions.sh,v 1.4 2017/07/01 06:14:51 kre Exp $
+# $NetBSD: mkoptions.sh,v 1.5 2017/11/15 09:21:19 kre Exp $
 
 #
 # It would be more sensible to generate 2 .h files, one which
@@ -41,7 +41,7 @@
        -e '/^[         ]*\//d'         \
        -e '/^[         ]*\*/d'         \
        -e '/^[         ]*;/d'                  |
-sort -b -k2,2f -k2,2r < "${IF}"                        |
+sort -b -k2,2f -k2,2 < "${IF}"                 |
 while read line
 do
        # Look for comments in various styles, and ignore them



Home | Main Index | Thread Index | Old Index