Updated msys2 to msys2-base-x86_64-20200903

This commit is contained in:
Gator96100 2020-09-07 18:14:14 +02:00
commit 2307d54cb1
18501 changed files with 1684082 additions and 720361 deletions

View file

@ -7,7 +7,7 @@ _update_rc_d()
local cur prev words cword
_init_completion || return
local sysvdir services options valid_options
local sysvdir services options
[[ -d /etc/rc.d/init.d ]] && sysvdir=/etc/rc.d/init.d \
|| sysvdir=/etc/init.d
@ -17,15 +17,10 @@ _update_rc_d()
options=( -f -n )
if [[ $cword -eq 1 || "$prev" == -* ]]; then
valid_options=( $( \
tr " " "\n" <<<"${words[@]} ${options[@]}" \
| command sed -ne "/$( command sed "s/ /\\|/g" <<<"${options[@]}" )/p" \
| sort | uniq -u \
) )
COMPREPLY=( $( compgen -W '${options[@]} ${services[@]}' \
-X '$( tr " " "|" <<<${words[@]} )' -- "$cur" ) )
elif [[ "$prev" == ?($( tr " " "|" <<<${services[@]} )) ]]; then
COMPREPLY=( $( compgen -W 'remove defaults start stop' -- "$cur" ) )
COMPREPLY=( $(compgen -W '${options[@]} ${services[@]}' \
-X '$(tr " " "|" <<<${words[@]})' -- "$cur") )
elif [[ "$prev" == ?($(tr " " "|" <<<"${services[*]}")) ]]; then
COMPREPLY=( $(compgen -W 'remove defaults start stop' -- "$cur") )
elif [[ "$prev" == defaults && "$cur" == [0-9] ]]; then
COMPREPLY=( 0 1 2 3 4 5 6 7 8 9 )
elif [[ "$prev" == defaults && "$cur" == [sk]?([0-9]) ]]; then
@ -53,7 +48,7 @@ _update_rc_d()
COMPREPLY=()
fi
elif [[ "$prev" == "." ]]; then
COMPREPLY=( $( compgen -W "start stop" -- "$cur" ) )
COMPREPLY=( $(compgen -W "start stop" -- "$cur") )
else
COMPREPLY=()
fi