From 4aa91a07309a66077274765751679f9e9f93190c Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Mon, 26 Aug 2013 13:49:54 +0200 Subject: m bash MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/argparser.bash | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/argparser.bash b/src/argparser.bash index 6756cff..2c1e58e 100644 --- a/src/argparser.bash +++ b/src/argparser.bash @@ -284,9 +284,9 @@ function args_noop function args_stickless { if [ "${1::1}" = '-' ] || [ "${1::1}" = '+' ]; then - return 0 - else return 1 + else + return 0 fi } @@ -620,6 +620,7 @@ function args_parse nulqueue+=( 0 ) continue fi + fi if [ $tmpdashed = 1 ]; then args_files+=( "$arg" ) tmpdashed=0 -- cgit v1.2.3-70-g09d2