From: Márcio Almada Date: Wed, 8 Apr 2015 05:45:58 +0000 (-0300) Subject: completion: fix global bash variable leak on __gitcompappend X-Git-Tag: v2.4.0-rc3~8^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=852ff1c362b9e92f4bc08997c4837c6190d6e530;p=thirdparty%2Fgit.git completion: fix global bash variable leak on __gitcompappend Signed-off-by: Junio C Hamano --- diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash index 019026efcb..2504fb605b 100644 --- a/contrib/completion/git-completion.bash +++ b/contrib/completion/git-completion.bash @@ -180,7 +180,7 @@ fi __gitcompappend () { - local i=${#COMPREPLY[@]} + local x i=${#COMPREPLY[@]} for x in $1; do if [[ "$x" == "$3"* ]]; then COMPREPLY[i++]="$2$x$4"