mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-13 13:41:01 +02:00
* Update tail to support -q/-v on NetBSD * Add several new functions (with one change needed to _hosts compdefs)
20 lines
599 B
Text
20 lines
599 B
Text
#compdef mkfifo gmkfifo
|
|
|
|
local -a aopts args
|
|
|
|
if _pick_variant gnu='Free Soft' unix --version; then
|
|
args=(
|
|
'(: * -)--help[display help information]'
|
|
'(: * -)--version[display version information]'
|
|
'(-m --mode)'{-m+,--mode=}'[specify file mode]: :_file_modes'
|
|
)
|
|
[[ $OSTYPE == linux* ]] && args+=(
|
|
'(--context)-Z[set SELinux security context to default]'
|
|
'(-Z)--context=-[like -Z, or specify SELinux security context]:SELinux security context'
|
|
)
|
|
else
|
|
aopts=( -A '-*' )
|
|
args=( '-m+[specify file mode]: :_file_modes' )
|
|
fi
|
|
|
|
_arguments -s -S $aopts : '*:FIFO:_files' $args
|