subcommand: Declare two variables of gsu_getopts() as local.
authorAndre Noll <maan@tuebingen.mpg.de>
Mon, 27 Jan 2020 09:40:28 +0000 (10:40 +0100)
committerAndre Noll <maan@tuebingen.mpg.de>
Fri, 19 Mar 2021 13:45:17 +0000 (14:45 +0100)
Without the declaration, applications that also use these variables may
encounter problems.

subcommand

index 561ca1a062a16fa1fd7025be7d5f95c4df33bab6..e695b588e14e395169f896d7ce1f354e43615f21 100644 (file)
@@ -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