| Server IP : 74.208.236.52 / Your IP : 216.73.216.240 Web Server : Apache System : Linux infong527 4.4.400-icpu-115 #2 SMP Mon Jul 6 08:15:05 UTC 2026 x86_64 User : u44043973 ( 5404757) PHP Version : 8.4.24 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /kunden/usr/share/zsh/functions/Completion/Zsh/ |
Upload File : |
#autoload
# Complete 'globbing flags', i.e., '(#x)'; everything up to the '#' will
# have been "compset -P"'d by the caller.
local ret=1
local -a flags
local preprefix=$IPREFIX
compset -P '([ilIUubBmMcq]|a(|<->))##'
# make sure to not consider anything before the '#'
preprefix=${IPREFIX[$#preprefix,-1]}
if [[ $preprefix = *\#q* ]]; then
_globquals
return
elif [[ $preprefix = *q* ]]; then
_message 'q flag has to be specified by itself'
return
elif [[ $preprefix = *a(|<->) ]]; then
_message -e number 'errors'
if [[ $preprefix = *a ]]; then
return
else
compset -P '<->'
fi
elif [[ $preprefix = *\#c ]]; then
_message -e range 'repetitions (min,max) or (exact)'
return
fi
flags=(
'i:case insensitive'
'l:lower case characters match uppercase'
'I:case sensitive matching'
's:match start of string'
'e:match end of string'
'U:consider all characters to be one byte'
'u:support multibyte characters in pattern'
)
[[ $compstate[context] = condition ]] && flags+=(
'b:activate backreferences'
'B:deactivate backreferences'
'm:set reference to entire matched data'
'M:deactivate m flag'
)
flags=( ${flags:#[$preprefix[(R)\#,-1]]*} )
if [[ $IPREFIX != *'#' ]]; then
flags=( ${flags:#[se]*} )
fi
_describe -t globflags "glob flag" flags -Q -S ')' && ret=0
flags=(
'a:approximate matching'
'q:introduce glob qualifier'
'c:match repetitions of preceding pattern'
)
flags=( ${flags:#[$preprefix[(R)\#,-1]]*} )
if [[ $IPREFIX != *'#' ]]; then
flags=( ${flags:#[cq]*} )
fi
_describe -t globflags "glob flag" flags -Q -S '' && ret=0
return ret