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

@ -6,7 +6,7 @@ _7z()
_init_completion -n = || return
if [[ $cword -eq 1 ]]; then
COMPREPLY=( $( compgen -W 'a b d e l t u x' -- "$cur" ) )
COMPREPLY=( $(compgen -W 'a b d e l t u x' -- "$cur") )
return
fi
@ -15,7 +15,7 @@ _7z()
case $cur in
-ao*)
COMPREPLY=( $( compgen -P${cur:0:3} -W 'a s t u' -- "${cur:3}" ) )
COMPREPLY=( $(compgen -P${cur:0:3} -W 'a s t u' -- "${cur:3}") )
return
;;
-?(a)[ix]*)
@ -26,58 +26,54 @@ _7z()
opt=${cur:0:2} cur=${cur:2}
fi
if [[ $cur != *[@\!]* ]]; then
COMPREPLY=( $( compgen -P$opt -W '@ ! r@ r-@ r0@ r! r-! r0!' \
-- "$cur" ) )
COMPREPLY=( $(compgen -P$opt -W '@ ! r@ r-@ r0@ r! r-! r0!' \
-- "$cur") )
elif [[ $cur == ?(r@(-|0|))@* ]]; then
local x tmp
x=$( compgen -P"${opt}${cur%%@*}@" -f -- "${cur#*@}" ) &&
while read -r tmp; do
COMPREPLY+=( "$tmp" )
done <<< "$x"
local IFS=$' \t\n' reset=$(shopt -po noglob); set -o noglob
COMPREPLY=( $(compgen -P"${opt}${cur%%@*}@" -f -- "${cur#*@}") )
$reset
compopt -o filenames
fi
return
;;
-mhe=*|-mhc=*|-ms=*|-mt=*)
COMPREPLY=( $( compgen -W 'on off' -- "${cur#*=}" ) )
COMPREPLY=( $(compgen -W 'on off' -- "${cur#*=}") )
return
;;
-mx=*)
COMPREPLY=( $( compgen -W '0 1 3 5 7 9' -- "${cur#*=}" ) )
COMPREPLY=( $(compgen -W '0 1 3 5 7 9' -- "${cur#*=}") )
return
;;
-o*|-w?*)
local x tmp
x=$( compgen -P${cur:0:2} -S/ -d -- "${cur:2}" ) &&
while read -r tmp; do
COMPREPLY+=( "$tmp" )
done <<< "$x"
local IFS=$' \t\n' reset=$(shopt -po noglob); set -o noglob
COMPREPLY=( $(compgen -P${cur:0:2} -S/ -d -- "${cur:2}") )
$reset
compopt -o nospace -o filenames
return
;;
-r?*)
COMPREPLY=( $( compgen -P${cur:0:2} -W '- 0' -- "${cur:2}" ) )
COMPREPLY=( $(compgen -P${cur:0:2} -W '- 0' -- "${cur:2}") )
return
;;
-scs*)
COMPREPLY=( $( compgen -P${cur:0:4} -W 'UTF-8 WIN DOS' \
-- "${cur:4}" ) )
COMPREPLY=( $(compgen -P${cur:0:4} -W 'UTF-8 WIN DOS' \
-- "${cur:4}") )
return
;;
-ssc?*)
COMPREPLY=( $( compgen -P${cur:0:4} -W '-' -- "${cur:4}" ) )
COMPREPLY=( $(compgen -P${cur:0:4} -W '-' -- "${cur:4}") )
return
;;
-t*)
if [[ $mode == w ]]; then
COMPREPLY=( $( compgen -P${cur:0:2} -W '7z bzip2 gzip swfc
tar wim xz zip' -- "${cur:2}" ) )
COMPREPLY=( $(compgen -P${cur:0:2} -W '7z bzip2 gzip swfc
tar wim xz zip' -- "${cur:2}") )
else
COMPREPLY=( $( compgen -P${cur:0:2} -W '7z apm arj bzip2 cab
COMPREPLY=( $(compgen -P${cur:0:2} -W '7z apm arj bzip2 cab
chm cpio cramfs deb dmg elf fat flv gzip hfs iso lzh lzma
lzma86 macho mbr mslz mub nsis ntfs pe ppmd rar rpm
squashfs swf swfc tar udf vhd wim xar xz z zip' \
-- "${cur:2}" ) )
-- "${cur:2}") )
fi
return
;;
@ -87,9 +83,9 @@ _7z()
esac
if [[ $cur == -* ]]; then
COMPREPLY=( $( compgen -W '-ai -an -ao -ax -bd -i -m{x,s,f,he,hc,mt}=
COMPREPLY=( $(compgen -W '-ai -an -ao -ax -bd -i -m{x,s,f,he,hc,mt}=
-o -p -r -scs -sfx -si -slp -slt -so -ssc -t -u -v -w -x -y' \
-- "$cur" ) )
-- "$cur") )
[[ $COMPREPLY == -@(an|bd|sfx|si|slt|so|ssc|[rwy]) ]] ||
compopt -o nospace
return
@ -99,15 +95,23 @@ _7z()
_count_args =
if [[ $args -eq 2 ]]; then
_filedir_xspec unzip
# TODO: parsing 7z i output?
# - how to figure out if the format is input or output?
# - find string Formats:, read until next empty line
# - extensions start from column 26
# - ignore everything in parens
# - terminate on two spaces
# - terminate on token containing anything [^a-z0-9]
# (assumption: extensions are all lowercase)
[[ $mode == w ]] &&
_filedir '@(7z|bz2|swf|?(g)tar|?(t)[bglx]z|tb?(z)2|wim)' ||
_filedir '@(7z|arj|bz2|cab|chm|cpio|deb|dmg|flv|gem|img|iso|lz[ah]|lzma?(86)|pmd|[rx]ar|rpm|sw[fm]|?(g)tar|taz|?(t)[bglx]z|tb?(z)2|vhd|wim|Z)'
_filedir '@(7z|arj|bz2|cab|chm|cpio|deb|dmg|flv|gem|img|iso|lz[ah]|lzma?(86)|msi|pmd|[rx]ar|rpm|sw[fm]|?(g)tar|taz|?(t)[bglx]z|tb?(z)2|vhd|wim|Z)'
else
if [[ ${words[1]} == d ]]; then
local IFS=$'\n'
COMPREPLY=( $( compgen -W "$( printf '%s\n' $( $1 l ${words[2]} \
COMPREPLY=( $(compgen -W "$(printf '%s\n' $($1 l ${words[2]} \
-slt 2>/dev/null | command sed -n '/^Path =/s/^Path = \(.*\)$/\1/p' \
2>/dev/null | tail -n+2 ) )" -- "$cur" ) )
2>/dev/null | tail -n+2))" -- "$cur") )
compopt -o filenames
else
_filedir