diff options
author | Junio C Hamano <gitster@pobox.com> | 2013-01-28 10:59:07 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-01-28 10:59:07 -0800 |
commit | 38f7636410a41769af36a5abfdf0f02f3542c6b1 (patch) | |
tree | 5da76c49108f216001eaf38ab437d33e5eca32ff /contrib | |
parent | Merge branch 'for-junio' of git://bogomips.org/git-svn (diff) | |
parent | git-completion.bash: replace zsh notation that breaks bash 3.X (diff) | |
download | tgif-38f7636410a41769af36a5abfdf0f02f3542c6b1.tar.xz |
Merge branch 'bc/fix-array-syntax-for-3.0-in-completion-bash'
Fix use of an array notation that older versions of bash do not
understand.
* bc/fix-array-syntax-for-3.0-in-completion-bash:
git-completion.bash: replace zsh notation that breaks bash 3.X
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/completion/git-completion.bash | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash index 7147d64af2..8c49ce2544 100644 --- a/contrib/completion/git-completion.bash +++ b/contrib/completion/git-completion.bash @@ -2432,7 +2432,7 @@ if [[ -n ${ZSH_VERSION-} ]]; then --*=*|*.) ;; *) c="$c " ;; esac - array+=("$c") + array[$#array+1]="$c" done compset -P '*[=:]' compadd -Q -S '' -p "${2-}" -a -- array && _ret=0 |