Module Name: src Committed By: kre Date: Fri Oct 11 08:53:09 UTC 2024
Modified Files: src/bin/sh: mkoptions.sh Log Message: Allow '+' to be specified as the "one char option name" for long options that don't have a 1 char equivalent, but do want to become a member of an option set. The '+' is otherwise ignored. This is similar to '-' in that position, except that skips past the option set field, and is followed directly by the default value, '+' does not do that. This currently changes nothing, as there are no current options that use it (or would want to). To generate a diff of this commit: cvs rdiff -u -r1.8 -r1.9 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.8 src/bin/sh/mkoptions.sh:1.9 --- src/bin/sh/mkoptions.sh:1.8 Tue Apr 16 23:30:19 2024 +++ src/bin/sh/mkoptions.sh Fri Oct 11 08:53:09 2024 @@ -1,6 +1,6 @@ #! /bin/sh -# $NetBSD: mkoptions.sh,v 1.8 2024/04/16 23:30:19 christos Exp $ +# $NetBSD: mkoptions.sh,v 1.9 2024/10/11 08:53:09 kre Exp $ # # It would be more sensible to generate 2 .h files, one which @@ -95,6 +95,7 @@ do case "${chr}" in -) chr= set= dflt="$4";; + +) chr= ;; ''|?) ;; *) printf >&2 'flag "%s": Not a character\n' "${chr}"; continue;; esac