diff options
author | Mattias Andrée <maandree@operamail.com> | 2013-06-26 07:43:13 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2013-06-26 07:43:13 +0200 |
commit | 80f9287d9850b9b4fd4defb618ef2a0007b8d6c1 (patch) | |
tree | 992bbeb9f77a18fd46527fecdf44b8a14493c448 | |
parent | m + bash bug fixes + add test for bash version (diff) | |
download | argparser-80f9287d9850b9b4fd4defb618ef2a0007b8d6c1.tar.gz argparser-80f9287d9850b9b4fd4defb618ef2a0007b8d6c1.tar.bz2 argparser-80f9287d9850b9b4fd4defb618ef2a0007b8d6c1.tar.xz |
m bug
Signed-off-by: Mattias Andrée <maandree@operamail.com>
-rw-r--r-- | src/argparser.bash | 2 |
1 files changed, 1 insertions, 1 deletions
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 |