Skip to content

Commit 38f7636

Browse files
committed
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
2 parents 50a6b54 + 50c5885 commit 38f7636

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/completion/git-completion.bash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2432,7 +2432,7 @@ if [[ -n ${ZSH_VERSION-} ]]; then
24322432
--*=*|*.) ;;
24332433
*) c="$c " ;;
24342434
esac
2435-
array+=("$c")
2435+
array[$#array+1]="$c"
24362436
done
24372437
compset -P '*[=:]'
24382438
compadd -Q -S '' -p "${2-}" -a -- array && _ret=0

0 commit comments

Comments
 (0)