diff options
author | Baptiste Daroussin <bapt@FreeBSD.org> | 2016-12-18 13:24:57 +0100 |
---|---|---|
committer | Daniel Shahaf <d.s@daniel.shahaf.name> | 2016-12-18 14:55:57 +0000 |
commit | 5a98e318b03d78d8d24028c3ff6dd56952d58ac2 (patch) | |
tree | 0d5269b76b46439455284c8ce95ba482787117e8 /Completion/Unix | |
parent | 8ae20a8589d7253a710c3669fac51bd436b0ddc3 (diff) | |
download | zsh-5a98e318b03d78d8d24028c3ff6dd56952d58ac2.tar.gz zsh-5a98e318b03d78d8d24028c3ff6dd56952d58ac2.tar.xz zsh-5a98e318b03d78d8d24028c3ff6dd56952d58ac2.zip |
40210: Add support modern FreeBSD and drop support for FreeBSD < 5
Diffstat (limited to 'Completion/Unix')
-rw-r--r-- | Completion/Unix/Command/_sysctl | 6 |
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]' \ |