| Server IP : 217.160.0.64 / Your IP : 216.73.216.182 Web Server : Apache System : Linux info 3.0 #1337 SMP Tue Jan 01 00:00:00 CEST 2000 all GNU/Linux User : ws67269618 ( 67269618) PHP Version : 8.4.28 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /kunden/proc/self/root/kunden/proc/self/root/usr/share/zsh/functions/Completion/Unix/ |
Upload File : |
#autoload
# Provides completion for file modes (formerly part of _chmod)
local curcontext=$curcontext
local -a context line state state_descr copts=( "${@}" ) privs
local -A val_args
privs=(
'r[read]' 'w[write]' 'x[execute]'
's[set uid/gid]' 't[sticky]'
'X[execute only if directory or executable to another]'
"u[owner's current permissions]"
"g[group's current permissions]"
"o[others' current permissions]"
)
[[ $OSTYPE == solaris* ]] &&
privs+=( 'l[mandatory locking]' )
compset -P '*,'
compset -S ',*'
if [[ -prefix [0-7] ]]; then
_message -e number 'numeric mode'
elif compset -P '[a-z]#[+-=]'; then
_values -O copts -S '' privilege $privs && return 0
else
compset -P '*'
copts=( -S '' )
_alternative -O copts \
'who:who:((a\:all u\:owner g\:group o\:others))' \
'operators:operator:(+ - =)' \
&& return 0
fi
return 1