git-completion.bash: replace zsh notation that breaks bash 3.X
[gitweb.git] / contrib / completion / git-completion.bash
index a4c48e179eb778077462a812b491e762e284486c..2f994200557b3e2e440d5be55f8526a197ae6269 100644 (file)
@@ -2431,7 +2431,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