1
0
Fork 0
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:
Oliver Kiddle 2014-10-02 15:02:33 +02:00
parent c080bd52bc
commit dad5063a7c

View file

@ -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