diff options
author | Axel Beckert <abe@deuxchevaux.org> | 2015-11-26 21:46:14 +0100 |
---|---|---|
committer | Axel Beckert <abe@deuxchevaux.org> | 2015-11-26 21:46:14 +0100 |
commit | b3541722e8b02bf0340edebbece40c08544fad4e (patch) | |
tree | 6b0823802aacd229d16e7647e83370e08493d984 /Completion/Unix/Command/_sysctl | |
parent | dbd1863555612657a8dbc5490d181fd940346e4a (diff) | |
parent | 2bab9f0394e5642e8a72511ba846d0faffe4e69f (diff) | |
download | zsh-b3541722e8b02bf0340edebbece40c08544fad4e.tar.gz zsh-b3541722e8b02bf0340edebbece40c08544fad4e.zip |
Merge branch 'upstream' into debian
This is necessary to include the most recent fix for the testsuite.
Otherwise the package FTBFS.
Diffstat (limited to 'Completion/Unix/Command/_sysctl')
-rw-r--r-- | Completion/Unix/Command/_sysctl | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/Completion/Unix/Command/_sysctl b/Completion/Unix/Command/_sysctl index ff3312fac..9d9e8b968 100644 --- a/Completion/Unix/Command/_sysctl +++ b/Completion/Unix/Command/_sysctl @@ -34,13 +34,13 @@ case $OSTYPE in '(-n -p -a -A)*:sysctl variable:_files -W /proc/sys' ;; openbsd*) - : ${(A)_cache_sysctlvars:=${${(f)"$(sysctl -a)"}%% *}} - _arguments -s -A "-*" \ - '(-w -A *)-a[list all string and integer variables]' \ - '(-w -a *)-A[list all known variables]' \ - '(-w)-n[show only values]' \ - '(-a -A -n)-w[write variable]' \ - '(-a -A)*:sysctl variable:_multi_parts ${words[(r)-w]:+-S=} -i . _cache_sysctlvars' + : ${(A)_cache_sysctlvars:=${${${(f)"$(sysctl -a 2>/dev/null)"}%%=*}:# *}} + _arguments -S -s -A "-*" \ + '(-A -q *)-a[list all string and integer variables]' \ + '(-a -q *)-A[list all known variables]' \ + '-n[show only values]' \ + '(-a -A)-q[suppress all output when setting a variable]' \ + '(-a -A)*:sysctl variable:_multi_parts -i -S = -q . _cache_sysctlvars' ;; *) _default |