Skip to content

Commit 5617394

Browse files
committed
Merge branch 'bc/fix-array-syntax-for-3.0-in-completion-bash' into maint
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
2 parents e1b6ff4 + 50c5885 commit 5617394

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
@@ -2431,7 +2431,7 @@ if [[ -n ${ZSH_VERSION-} ]]; then
24312431
--*=*|*.) ;;
24322432
*) c="$c " ;;
24332433
esac
2434-
array+=("$c")
2434+
array[$#array+1]="$c"
24352435
done
24362436
compset -P '*[=:]'
24372437
compadd -Q -S '' -p "${2-}" -a -- array && _ret=0

0 commit comments

Comments
 (0)