Skip to content

Commit

Permalink
Merge branch 'bc/fix-array-syntax-for-3.0-in-completion-bash' into maint
Browse files Browse the repository at this point in the history
Command line completion code was inadvertently made incompatible with
older versions of bash by using a newer array notation.

* 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 Feb 4, 2013
2 parents e1b6ff4 + 50c5885 commit 5617394
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 @@ -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
Expand Down

0 comments on commit 5617394

Please sign in to comment.