Skip to content

Commit

Permalink
Merge branch 'bc/fix-array-syntax-for-3.0-in-completion-bash'
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Junio C Hamano committed Jan 28, 2013
2 parents 50a6b54 + 50c5885 commit 38f7636
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/completion/git-completion.bash
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 38f7636

Please sign in to comment.