From 80f9287d9850b9b4fd4defb618ef2a0007b8d6c1 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Wed, 26 Jun 2013 07:43:13 +0200 Subject: m bug MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/argparser.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/argparser.bash b/src/argparser.bash index 4ea8727..76e7d6b 100644 --- a/src/argparser.bash +++ b/src/argparser.bash @@ -493,7 +493,7 @@ function args_parse elif [ "$arg" = "--" ]; then dashed=1 elif (( ${#arg} > 1 )) && [ "${_arg::1}" = "-" ]; then - if (( ${#arg} > 2 )) && [ "${_arg::1}" = "${_arg:1:1}" ]; then + if (( ${#arg} > 2 )) && [ "${arg::1}" = "${arg:1:1}" ]; then if [ ! $dontget = 0 ]; then (( dontget-- )) elif [ ! -e "${args_optmap}/${arg}" ]; then -- cgit v1.2.3-70-g09d2