diff options
author | Junio C Hamano <gitster@pobox.com> | 2013-09-18 12:00:11 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-09-18 12:00:11 -0700 |
commit | ebb9d1968ae2bb4268c030b07dccf0761975af8d (patch) | |
tree | e3d08c6d8bcc9e89906eb9f073ccaf85e164c2d2 /t | |
parent | Merge branch 'mm/no-shell-escape-in-die-message' into maint (diff) | |
parent | contrib/git-prompt.sh: handle missing 'printf -v' more gracefully (diff) | |
download | tgif-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 't')
-rwxr-xr-x | t/t9902-completion.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t9902-completion.sh b/t/t9902-completion.sh index 272a071e85..2d4beb5e50 100755 --- a/t/t9902-completion.sh +++ b/t/t9902-completion.sh @@ -69,7 +69,7 @@ run_completion () local -a COMPREPLY _words local _cword _words=( $1 ) - test "${1: -1}" = ' ' && _words+=('') + test "${1: -1}" = ' ' && _words[${#_words[@]}+1]='' (( _cword = ${#_words[@]} - 1 )) __git_wrap__git_main && print_comp } |