mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-23 04:30:24 +02:00
33315: fix pattern to match freebsd10 and later
This commit is contained in:
parent
c080bd52bc
commit
dad5063a7c
1 changed files with 6 additions and 3 deletions
|
@ -1,9 +1,9 @@
|
|||
#compdef sysctl
|
||||
|
||||
case $OSTYPE in
|
||||
*freebsd[5-9].*|freebsd4.[4-9]*)
|
||||
*freebsd<5->.*|freebsd4.[4-9]*)
|
||||
local -a sysctlvars
|
||||
sysctlvars=( $(sysctl -aN) )
|
||||
sysctlvars=( $(_call_program sysctl-variables sysctl -aN) )
|
||||
_arguments -s -A "-*" \
|
||||
'(*)-a[list all]' \
|
||||
'-b[binary output]' \
|
||||
|
@ -41,5 +41,8 @@ case $OSTYPE in
|
|||
'(-w)-n[show only values]' \
|
||||
'(-a -A -n)-w[write variable]' \
|
||||
'(-a -A)*:sysctl variable:_multi_parts ${words[(r)-w]:+-S=} -i . _cache_sysctlvars'
|
||||
;;
|
||||
;;
|
||||
*)
|
||||
_default
|
||||
;;
|
||||
esac
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue