From da21d8ba8dc9ceb3fc0dfac3a5deafd165ebd19a Mon Sep 17 00:00:00 2001 From: Dominique Fournier Date: Fri, 25 Sep 2015 09:38:59 +0000 Subject: [PATCH] Typo in calculation git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2322 bf3deb0d-5f1a-0410-827f-c0cc1f45334c --- docs/cli-completion | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/cli-completion b/docs/cli-completion index 3e50a6b..116f74e 100644 --- a/docs/cli-completion +++ b/docs/cli-completion @@ -18,11 +18,12 @@ _cli.php() EXPERT="-expert" unset COMP_WORDS[1] COMP_WORDS=("${COMP_WORDS[@]}") - COMP_CWORD=${COMP_CWORD}-1 + COMP_CWORD=$((${COMP_CWORD}-1)) else EXPERT="" fi +echo "COMP_CWORD=$COMP_CWORD" >> /tmp/debug cur="${COMP_WORDS[COMP_CWORD]}" prev="${COMP_WORDS[COMP_CWORD-1]}" ante="${COMP_WORDS[COMP_CWORD-2]}"