Updated msys2

This commit is contained in:
gator96100 2019-08-16 02:06:21 +02:00
commit f0dc1ea8b0
13308 changed files with 689276 additions and 46605 deletions

View file

@ -1358,14 +1358,17 @@ _get_first_arg()
# This function counts the number of args, excluding options
# @param $1 chars Characters out of $COMP_WORDBREAKS which should
# NOT be considered word breaks. See __reassemble_comp_words_by_ref.
# @param $2 glob Options whose following argument should not be counted
_count_args()
{
local i cword words
__reassemble_comp_words_by_ref "$1" words cword
args=1
for i in "${words[@]:1:cword-1}"; do
[[ "$i" != -* ]] && args=$(($args+1))
for (( i=1; i < cword; i++ )); do
if [[ ${words[i]} != -* && ${words[i-1]} != $2 ]]; then
args=$(($args+1))
fi
done
}
@ -1900,7 +1903,13 @@ complete -F _longopt a2ps awk base64 bash bc bison cat chroot colordiff cp \
sed seq sha{,1,224,256,384,512}sum shar sort split strip sum tac tail tee \
texindex touch tr uname unexpand uniq units vdir wc who
declare -A _xspecs
# declare only knows -g in bash >= 4.2.
if [[ ${BASH_VERSINFO[0]} -gt 4 ||
${BASH_VERSINFO[0]} -eq 4 && ${BASH_VERSINFO[1]} -ge 2 ]]; then
declare -Ag _xspecs
else
declare -A _xspecs
fi
_filedir_xspec()
{
local cur prev words cword
@ -2028,6 +2037,7 @@ __load_completion()
{
local -a dirs=( ${BASH_COMPLETION_USER_DIR:-${XDG_DATA_HOME:-$HOME/.local/share}/bash-completion}/completions )
local OIFS=$IFS IFS=: dir cmd="${1##*/}" compfile
[[ -n $cmd ]] || return 1
for dir in ${XDG_DATA_DIRS:-/usr/local/share:/usr/share}; do
dirs+=( $dir/bash-completion/completions )
done