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

@ -3,7 +3,7 @@
_gnokii_memory_type()
{
# TODO: reduce the number of choices
COMPREPLY=( $( compgen -W "IN OU SM ME MT" -- "$cur" ) )
COMPREPLY=( $(compgen -W "IN OU SM ME MT" -- "$cur") )
}
_gnokii()
@ -24,15 +24,15 @@ _gnokii()
[[ -f $config_file ]] && break
done
[[ ! -f $config_file ]] && return
COMPREPLY=( $( compgen -W \
"$( command sed -n 's/^\[phone_\(.*\)\]/\1/p' $config_file )" \
-- "$cur" ) )
COMPREPLY=( $(compgen -W \
"$(command sed -n 's/^\[phone_\(.*\)\]/\1/p' $config_file)" \
-- "$cur") )
return
;;
--help)
COMPREPLY=( $( compgen -W 'all monitor sms mms phonebook calendar
COMPREPLY=( $(compgen -W 'all monitor sms mms phonebook calendar
todo dial profile settings wap logo ringtone security file
other' -- "$cur" ) )
other' -- "$cur") )
return
;;
--version|--shell|ping)
@ -41,15 +41,15 @@ _gnokii()
# MONITOR
--monitor)
COMPREPLY=( $( compgen -W 'delay once' -- "$cur" ) )
COMPREPLY=( $(compgen -W 'delay once' -- "$cur") )
return
;;
--getdisplaystatus|--displayoutput)
return
;;
--netmonitor)
COMPREPLY=( $( compgen -W 'reset off field devel next nr' \
-- "$cur" ) )
COMPREPLY=( $(compgen -W 'reset off field devel next nr' \
-- "$cur") )
return
;;
@ -59,8 +59,8 @@ _gnokii()
return
;;
--savesms)
COMPREPLY=( $( compgen -W '--sender --smsc --smscno --folder
--location --sent --read --deliver --datetime' -- "$cur" ) )
COMPREPLY=( $(compgen -W '--sender --smsc --smscno --folder
--location --sent --read --deliver --datetime' -- "$cur") )
return
;;
--memory-type|--memory|--getsms|--deletesms|--getmms|--deletemms|\
@ -82,8 +82,8 @@ _gnokii()
return
;;
--writephonebook)
COMPREPLY=( $( compgen -W '--overwrite --find-free --memory-type
--location --vcard --ldif' -- "$cur" ) )
COMPREPLY=( $(compgen -W '--overwrite --find-free --memory-type
--location --vcard --ldif' -- "$cur") )
return
;;
--writecalendarnote|--writetodo)
@ -97,7 +97,7 @@ _gnokii()
return
;;
--divert)
COMPREPLY=( $( compgen -W '--op' -- "$cur" ) )
COMPREPLY=( $(compgen -W '--op' -- "$cur") )
return
;;
@ -112,7 +112,7 @@ _gnokii()
# SETTINGS
--reset)
COMPREPLY=( $( compgen -W 'soft hard' -- "$cur" ) )
COMPREPLY=( $(compgen -W 'soft hard' -- "$cur") )
return
;;
--setdatetime|--setalarm)
@ -131,12 +131,12 @@ _gnokii()
# LOGOS
--sendlogo)
COMPREPLY=( $( compgen -W 'caller op picture' -- "$cur" ) )
COMPREPLY=( $(compgen -W 'caller op picture' -- "$cur") )
return
;;
--setlogo|--getlogo)
COMPREPLY=( $( compgen -W 'op startup caller dealer text' \
-- "$cur" ) )
COMPREPLY=( $(compgen -W 'op startup caller dealer text' \
-- "$cur") )
return
;;
--viewlogo)
@ -145,7 +145,7 @@ _gnokii()
;;
--entersecuritycode)
COMPREPLY=( $( compgen -W 'PIN PIN2 PUK PUK2 SEC' -- "$cur" ) )
COMPREPLY=( $(compgen -W 'PIN PIN2 PUK PUK2 SEC' -- "$cur") )
return
;;
@ -166,16 +166,16 @@ _gnokii()
return
;;
--gettodo|--getcalendarnote)
COMPREPLY=( $( compgen -W '{1..9} end --vCal' -- "$cur" ) )
COMPREPLY=( $(compgen -W '{1..9} end --vCal' -- "$cur") )
return
;;
--deletecalendarnote)
COMPREPLY=( $( compgen -W '{1..9} end' -- "$cur" ) )
COMPREPLY=( $(compgen -W '{1..9} end' -- "$cur") )
return
;;
--divert)
COMPREPLY=( $( compgen -W 'register enable query disable
erasure' -- "$cur" ) )
COMPREPLY=( $(compgen -W 'register enable query disable
erasure' -- "$cur") )
return
;;
esac
@ -186,20 +186,20 @@ _gnokii()
tprev=${words[cword-3]}
case $tprev in
--deletesms|--deletemms)
COMPREPLY=( $( compgen -W 'end' -- "$cur" ) )
COMPREPLY=( $(compgen -W 'end' -- "$cur") )
return
;;
--getphonebook|--writetodo|--writecalendarnote)
COMPREPLY=( $( compgen -W '{1..9} end' -- "$cur" ) )
COMPREPLY=( $(compgen -W '{1..9} end' -- "$cur") )
return
;;
--gettodo|--getcalendarnote)
[[ ${words[cword-1]} == end ]] && \
COMPREPLY=( $( compgen -W '--vCal' -- "$cur" ) )
COMPREPLY=( $(compgen -W '--vCal' -- "$cur") )
return
;;
--divert)
COMPREPLY=( $( compgen -W '--type' -- "$cur" ) )
COMPREPLY=( $(compgen -W '--type' -- "$cur") )
return
esac
fi
@ -209,26 +209,26 @@ _gnokii()
fprev=${words[cword-4]}
case $fprev in
--getphonebook)
COMPREPLY=( $( compgen -W '--raw --vcard --ldif' -- "$cur" ) )
COMPREPLY=( $(compgen -W '--raw --vcard --ldif' -- "$cur") )
return
;;
--divert)
COMPREPLY=( $( compgen -W 'all busy noans outofreach notavail' \
-- "$cur" ) )
COMPREPLY=( $(compgen -W 'all busy noans outofreach notavail' \
-- "$cur") )
return
esac
fi
# safer to use LANG=C
local all_cmd="$( LANG=C _parse_help $1 "--help all" )"
local all_cmd="$(LANG=C _parse_help $1 "--help all")"
# these 2 below are allowed in combination with others
local main_cmd=$( command grep -v -- '--config\|--phone' <<<"$all_cmd" )
local main_cmd=$(command grep -v -- '--config\|--phone' <<<"$all_cmd")
# don't provide main command completions if one is
# already on the command line
[[ $COMP_LINE =~ $( tr ' ' '\b|'<<<$main_cmd ) ]] && return
[[ $COMP_LINE =~ $(tr ' ' '\b|'<<<$main_cmd) ]] && return
COMPREPLY=( $( compgen -W "$all_cmd" -- "$cur" ) )
COMPREPLY=( $(compgen -W "$all_cmd" -- "$cur") )
} &&
complete -F _gnokii gnokii