summaryrefslogtreecommitdiff
path: root/Completion/Unix/Command
diff options
context:
space:
mode:
authorAxel Beckert <abe@deuxchevaux.org>2016-12-23 01:56:18 +0100
committerAxel Beckert <abe@deuxchevaux.org>2016-12-23 01:56:18 +0100
commitaf3a244680a9ab01a4ae9cc4b6ffb0a5b2d98b9c (patch)
tree47ee9f0e4900cd4b636de6bb403e805a90ef78db /Completion/Unix/Command
parentea5d92e0dbe7d86c32bb74a50e1aa574e9c3a504 (diff)
parent06b1b7a37a69c9af27f52c9d073c0364bb997dd1 (diff)
downloadzsh-af3a244680a9ab01a4ae9cc4b6ffb0a5b2d98b9c.tar.gz
zsh-af3a244680a9ab01a4ae9cc4b6ffb0a5b2d98b9c.zip
Merge tag 'zsh-5.3.1' into debian
Release 5.3.1.
Diffstat (limited to 'Completion/Unix/Command')
-rw-r--r--Completion/Unix/Command/_sysctl6
1 files changed, 3 insertions, 3 deletions
diff --git a/Completion/Unix/Command/_sysctl b/Completion/Unix/Command/_sysctl
index cf88c3dc1..c5bb26eb0 100644
--- a/Completion/Unix/Command/_sysctl
+++ b/Completion/Unix/Command/_sysctl
@@ -10,10 +10,10 @@ case $OSTYPE in
'-W[display only writable variables that are not statistical]'
)
;|
- dragonfly*|freebsd<8->.*)
+ dragonfly*|freebsd*)
args+=( "-i[silently exit if variable doesn't exist]" )
;|
- *freebsd<5->.*|freebsd4.[4-9]*)
+ freebsd*)
local -a sysctlvars
sysctlvars=( $(_call_program sysctl-variables sysctl -aN) )
_arguments -s -S -A "-*" $args \
@@ -31,7 +31,7 @@ case $OSTYPE in
'(-o)-x[show opaques as well (entire values)]' \
'(-a)*:sysctl variable:_multi_parts -i . sysctlvars'
;;
- freebsd[0-4].*|darwin*|dragonfly*)
+ darwin*|dragonfly*)
: ${(A)_cache_sysctlvars:=${${$(sysctl -A 2>/dev/null):#[^a-z]*}%%:*}}
_arguments -s -A "-*" $args \
'(-w -X *)-a[list all]' \