From: Richard Hartmann Date: Mon, 8 Oct 2012 22:23:50 +0000 (+0200) Subject: Fix option parsing X-Git-Url: https://git.madduck.net/code/vcsh.git/commitdiff_plain/eb172dd760c077bae0b94756e28b4e7a935b74ca?hp=-c Fix option parsing Previously, only -d would shift parameters from the option stack correctly. --- eb172dd760c077bae0b94756e28b4e7a935b74ca 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() {