mirror of
https://github.com/Gator96100/ProxSpace.git
synced 2025-08-20 05:13:25 -07:00
Updated msys2 to msys2-base-x86_64-20200903
This commit is contained in:
parent
5bc8dbdc75
commit
2307d54cb1
18501 changed files with 1684082 additions and 720361 deletions
|
@ -12,22 +12,22 @@ _invoke_rc_d()
|
|||
[[ -d /etc/rc.d/init.d ]] && sysvdir=/etc/rc.d/init.d \
|
||||
|| sysvdir=/etc/init.d
|
||||
|
||||
services=( $( printf '%s ' $sysvdir/!(README*|*.sh|$_backup_glob) ) )
|
||||
services=( $(printf '%s ' $sysvdir/!(README*|*.sh|$_backup_glob)) )
|
||||
services=( ${services[@]#$sysvdir/} )
|
||||
options=( --help --quiet --force --try-anyway --disclose-deny --query \
|
||||
--no-fallback )
|
||||
|
||||
if [[ ($cword -eq 1) || ("$prev" == --* ) ]]; then
|
||||
valid_options=( $( \
|
||||
tr " " "\n" <<<"${words[@]} ${options[@]}" \
|
||||
| command sed -ne "/$( command sed "s/ /\\\\|/g" <<<"${options[@]}" )/p" \
|
||||
valid_options=( $(\
|
||||
tr " " "\n" <<<"${words[*]} ${options[*]}" \
|
||||
| command sed -ne "/$(command sed "s/ /\\\\|/g" <<<"${options[*]}")/p" \
|
||||
| sort | uniq -u \
|
||||
) )
|
||||
COMPREPLY=( $( compgen -W '${valid_options[@]} ${services[@]}' -- "$cur" ) )
|
||||
COMPREPLY=( $(compgen -W '${valid_options[@]} ${services[@]}' -- "$cur") )
|
||||
elif [[ -x $sysvdir/$prev ]]; then
|
||||
COMPREPLY=( $( compgen -W '`command sed -e "y/|/ /" \
|
||||
COMPREPLY=( $(compgen -W '`command sed -e "y/|/ /" \
|
||||
-ne "s/^.*Usage:[ ]*[^ ]*[ ]*{*\([^}\"]*\).*$/\1/p" \
|
||||
$sysvdir/$prev`' -- "$cur" ) )
|
||||
$sysvdir/$prev`' -- "$cur") )
|
||||
else
|
||||
COMPREPLY=()
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue