gsu subcommand: Fix off-by-one bug in gsu_cword_is_option_parameter().
authorAndre Noll <maan@systemlinux.org>
Tue, 29 Nov 2011 22:26:48 +0000 (23:26 +0100)
committerAndre Noll <maan@tuebingen.mpg.de>
Fri, 29 Aug 2014 19:39:58 +0000 (21:39 +0200)
commit0f548f1367bfdba2e270242bb0fccad1da5f8adf
tree01c5ab877af8c2bb958e43f008d03e2b0542b892
parent3a03e1053e427e8403bc9a4c2fb4686d9d179991
gsu subcommand: Fix off-by-one bug in gsu_cword_is_option_parameter().

We define $n as the number of characters in the getopt string *minus one*,
so we must loop from 0 to $n, inclusively.

This patch also adds documentation of this public function.
misc/gsu/subcommand