From: Andre Noll Date: Mon, 27 Jan 2020 09:43:47 +0000 (+0100) Subject: subcommand: Declare local variable i of gsu_getopts() as integer. X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=5bb6eedeb6a8f26d73aec0ad7f2d451d6a611a3c;p=gsu.git subcommand: Declare local variable i of gsu_getopts() as integer. We only use it as the loop index. --- diff --git a/subcommand b/subcommand index e695b58..6cb53d5 100644 --- a/subcommand +++ b/subcommand @@ -96,7 +96,8 @@ gsu_check_arg_count() # [[ -n "$o_c" ]] && echo "The -c option was given with arg $o_c" gsu_getopts() { - local i c c1 c2 tab=' ' cr=' + local -i i + local c c1 c2 tab=' ' cr=' ' gsu_check_arg_count $# 1 1