about summary refs log tree commit diff
path: root/Completion
diff options
context:
space:
mode:
Diffstat (limited to 'Completion')
-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]' \