From b4093a0d7e090bdea9f69594bbb6ea5023b6a362 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Mon, 27 Jan 2020 10:40:28 +0100 Subject: [PATCH] subcommand: Declare two variables of gsu_getopts() as local. Without the declaration, applications that also use these variables may encounter problems. --- subcommand | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.2