aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2013-06-26 07:43:13 +0200
committerMattias Andrée <maandree@operamail.com>2013-06-26 07:43:13 +0200
commit80f9287d9850b9b4fd4defb618ef2a0007b8d6c1 (patch)
tree992bbeb9f77a18fd46527fecdf44b8a14493c448
parentm + bash bug fixes + add test for bash version (diff)
downloadargparser-80f9287d9850b9b4fd4defb618ef2a0007b8d6c1.tar.gz
argparser-80f9287d9850b9b4fd4defb618ef2a0007b8d6c1.tar.bz2
argparser-80f9287d9850b9b4fd4defb618ef2a0007b8d6c1.tar.xz
m bug
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r--src/argparser.bash2
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