Module Name: src Committed By: kre Date: Sat Jul 1 06:14:51 UTC 2017
Modified Files: src/bin/sh: mkoptions.sh Log Message: Make $- list flags in the same order they appear in sh(1) To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 src/bin/sh/mkoptions.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/sh/mkoptions.sh diff -u src/bin/sh/mkoptions.sh:1.3 src/bin/sh/mkoptions.sh:1.4 --- src/bin/sh/mkoptions.sh:1.3 Mon Jun 19 02:43:55 2017 +++ src/bin/sh/mkoptions.sh Sat Jul 1 06:14:51 2017 @@ -1,6 +1,6 @@ #! /bin/sh -# $NetBSD: mkoptions.sh,v 1.3 2017/06/19 02:43:55 kre Exp $ +# $NetBSD: mkoptions.sh,v 1.4 2017/07/01 06:14:51 kre Exp $ # # It would be more sensible to generate 2 .h files, one which @@ -158,7 +158,7 @@ do printf '%s _SH_OPT_%s %s\n' "${chr}" "${var}" "${COND}" -done 4>>"${OF}" | sort -t' ' -k1,1f -k1,1r | while read chr index COND +done 4>>"${OF}" | sort -t' ' -k1,1f -k1,1 | while read chr index COND do if $FIRST then