aboutsummaryrefslogtreecommitdiff
path: root/contrib/completion/git-completion.bash
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2013-09-18 12:00:11 -0700
committerJunio C Hamano <gitster@pobox.com>2013-09-18 12:00:11 -0700
commitebb9d1968ae2bb4268c030b07dccf0761975af8d (patch)
treee3d08c6d8bcc9e89906eb9f073ccaf85e164c2d2 /contrib/completion/git-completion.bash
parentb25b9d5939b9ae35a728e1dbdc3a0fea03c79c4d (diff)
parenta44aa6930c9f3ce914f135c00a62878f9027f583 (diff)
downloadgit-ebb9d1968ae2bb4268c030b07dccf0761975af8d.tar.xz
Merge branch 'bc/completion-for-bash-3.0' into maint
Some people still use rather old versions of bash, which cannot grok some constructs like 'printf -v varname' the prompt and completion code started to use recently. * bc/completion-for-bash-3.0: contrib/git-prompt.sh: handle missing 'printf -v' more gracefully t9902-completion.sh: old Bash still does not support array+=('') notation git-completion.bash: use correct Bash/Zsh array length syntax
Diffstat (limited to 'contrib/completion/git-completion.bash')
-rw-r--r--contrib/completion/git-completion.bash2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
index 5da920ecd9..e1b7313072 100644
--- a/contrib/completion/git-completion.bash
+++ b/contrib/completion/git-completion.bash
@@ -2580,7 +2580,7 @@ if [[ -n ${ZSH_VERSION-} ]]; then
--*=*|*.) ;;
*) c="$c " ;;
esac
- array[$#array+1]="$c"
+ array[${#array[@]}+1]="$c"
done
compset -P '*[=:]'
compadd -Q -S '' -p "${2-}" -a -- array && _ret=0