From 5bb6eedeb6a8f26d73aec0ad7f2d451d6a611a3c Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Mon, 27 Jan 2020 10:43:47 +0100 Subject: [PATCH] subcommand: Declare local variable i of gsu_getopts() as integer. We only use it as the loop index. --- subcommand | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.39.2