diff options
author | Axel Beckert <abe@deuxchevaux.org> | 2014-10-08 01:29:12 +0200 |
---|---|---|
committer | Axel Beckert <abe@deuxchevaux.org> | 2014-10-08 01:29:12 +0200 |
commit | 1c3f90e3af0c3d6c8e946653169287baf5814ad4 (patch) | |
tree | 9b15e9ad8157bd8f9f697f6dc4e59146b6833c59 /Completion/Unix/Command/_sysctl | |
parent | 1ffb184b46edd34d389af4e016abcaafec454d44 (diff) | |
parent | 9982ab6fb5266298c056326ed265fc8560202603 (diff) | |
download | zsh-1c3f90e3af0c3d6c8e946653169287baf5814ad4.tar.gz zsh-1c3f90e3af0c3d6c8e946653169287baf5814ad4.zip |
Merge commit '9982ab6fb5266298c056326ed265fc8560202603' into debian
This is exactly one commit after the zsh-5.0.7 and adds one missing
(and not unimportant) changelog entry for the 5.0.7 release.
Diffstat (limited to 'Completion/Unix/Command/_sysctl')
-rw-r--r-- | Completion/Unix/Command/_sysctl | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/Completion/Unix/Command/_sysctl b/Completion/Unix/Command/_sysctl index 36b579bc7..ff3312fac 100644 --- a/Completion/Unix/Command/_sysctl +++ b/Completion/Unix/Command/_sysctl @@ -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 |