From eb172dd760c077bae0b94756e28b4e7a935b74ca Mon Sep 17 00:00:00 2001 From: Richard Hartmann Date: Tue, 9 Oct 2012 00:23:50 +0200 Subject: [PATCH 1/1] Fix option parsing Previously, only -d would shift parameters from the option stack correctly. --- vcsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vcsh b/vcsh index 496a43f..4fb1c45 100755 --- a/vcsh +++ b/vcsh @@ -25,12 +25,12 @@ while getopts "c:dv" flag; do if [ "$1" = '-d' ] || [ "$1" = '--debug' ]; then set -vx VCSH_DEBUG=1 - shift 1 elif [ "$1" = '-v' ];then VCSH_VERBOSE=1 elif [ "$1" = '-c' ];then VCSH_OPTION_CONFIG=$OPTARG fi + shift 1 done source_all() { -- 2.39.5