From: Andre Noll Date: Mon, 27 Jan 2020 09:40:28 +0000 (+0100) Subject: subcommand: Declare two variables of gsu_getopts() as local. X-Git-Url: http://git.tuebingen.mpg.de/?p=gsu.git;a=commitdiff_plain;h=b4093a0d7e090bdea9f69594bbb6ea5023b6a362 subcommand: Declare two variables of gsu_getopts() as local. Without the declaration, applications that also use these variables may encounter problems. --- diff --git a/subcommand b/subcommand index 561ca1a..e695b58 100644 --- a/subcommand +++ b/subcommand @@ -96,7 +96,7 @@ gsu_check_arg_count() # [[ -n "$o_c" ]] && echo "The -c option was given with arg $o_c" gsu_getopts() { - local i c tab=' ' cr=' + local i c c1 c2 tab=' ' cr=' ' gsu_check_arg_count $# 1 1