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
This commit is contained in:
commit
38f7636410
@ -2432,7 +2432,7 @@ if [[ -n ${ZSH_VERSION-} ]]; then
|
|||||||
--*=*|*.) ;;
|
--*=*|*.) ;;
|
||||||
*) c="$c " ;;
|
*) c="$c " ;;
|
||||||
esac
|
esac
|
||||||
array+=("$c")
|
array[$#array+1]="$c"
|
||||||
done
|
done
|
||||||
compset -P '*[=:]'
|
compset -P '*[=:]'
|
||||||
compadd -Q -S '' -p "${2-}" -a -- array && _ret=0
|
compadd -Q -S '' -p "${2-}" -a -- array && _ret=0
|
||||||
|
Loading…
Reference in New Issue
Block a user