Typo in calculation
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2322 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
@@ -18,11 +18,12 @@ _cli.php()
|
|||||||
EXPERT="-expert"
|
EXPERT="-expert"
|
||||||
unset COMP_WORDS[1]
|
unset COMP_WORDS[1]
|
||||||
COMP_WORDS=("${COMP_WORDS[@]}")
|
COMP_WORDS=("${COMP_WORDS[@]}")
|
||||||
COMP_CWORD=${COMP_CWORD}-1
|
COMP_CWORD=$((${COMP_CWORD}-1))
|
||||||
else
|
else
|
||||||
EXPERT=""
|
EXPERT=""
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
echo "COMP_CWORD=$COMP_CWORD" >> /tmp/debug
|
||||||
cur="${COMP_WORDS[COMP_CWORD]}"
|
cur="${COMP_WORDS[COMP_CWORD]}"
|
||||||
prev="${COMP_WORDS[COMP_CWORD-1]}"
|
prev="${COMP_WORDS[COMP_CWORD-1]}"
|
||||||
ante="${COMP_WORDS[COMP_CWORD-2]}"
|
ante="${COMP_WORDS[COMP_CWORD-2]}"
|
||||||
|
|||||||
Reference in New Issue
Block a user