mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-25 17:20:25 +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
|
#compdef sysctl
|
||||||
|
|
||||||
case $OSTYPE in
|
case $OSTYPE in
|
||||||
*freebsd[5-9].*|freebsd4.[4-9]*)
|
*freebsd<5->.*|freebsd4.[4-9]*)
|
||||||
local -a sysctlvars
|
local -a sysctlvars
|
||||||
sysctlvars=( $(sysctl -aN) )
|
sysctlvars=( $(_call_program sysctl-variables sysctl -aN) )
|
||||||
_arguments -s -A "-*" \
|
_arguments -s -A "-*" \
|
||||||
'(*)-a[list all]' \
|
'(*)-a[list all]' \
|
||||||
'-b[binary output]' \
|
'-b[binary output]' \
|
||||||
|
|
@ -42,4 +42,7 @@ case $OSTYPE in
|
||||||
'(-a -A -n)-w[write variable]' \
|
'(-a -A -n)-w[write variable]' \
|
||||||
'(-a -A)*:sysctl variable:_multi_parts ${words[(r)-w]:+-S=} -i . _cache_sysctlvars'
|
'(-a -A)*:sysctl variable:_multi_parts ${words[(r)-w]:+-S=} -i . _cache_sysctlvars'
|
||||||
;;
|
;;
|
||||||
|
*)
|
||||||
|
_default
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue