mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-02 22:11:54 +02:00
21393: add missing local declarations
This commit is contained in:
parent
1f3bd88afb
commit
fb81e044f1
2 changed files with 25 additions and 19 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
2005-08-01 Oliver Kiddle <opk@zsh.org>
|
||||||
|
|
||||||
|
* 21393: Completion/Unix/Command/_kvno: add missing local declarations
|
||||||
|
|
||||||
2005-08-01 Peter Stephenson <pws@csr.com>
|
2005-08-01 Peter Stephenson <pws@csr.com>
|
||||||
|
|
||||||
* 21552: Thorsten Dahlheimer: Src/builtin.c: various fixes to the
|
* 21552: Thorsten Dahlheimer: Src/builtin.c: various fixes to the
|
||||||
|
|
|
@ -1,22 +1,24 @@
|
||||||
#compdef kvno
|
#compdef kvno
|
||||||
|
|
||||||
_arguments \
|
local curcontext="$curcontext" state line ret=1
|
||||||
'-c[credentials cache]:cache:_files' \
|
|
||||||
'-e[enctype]:enctype:' \
|
|
||||||
'-q[suppress printing]' \
|
|
||||||
'-h[help]' \
|
|
||||||
'-4[kerberos 4 tickets]' \
|
|
||||||
':principal:->principal' && return 0
|
|
||||||
|
|
||||||
case "$state" in
|
_arguments -C \
|
||||||
(principal)
|
'(-4)-c[specify credentials cache to use]:cache:_files' \
|
||||||
if [[ -prefix host/ ]]; then
|
'(-4)-e[specify encryption type]:encryption type' \
|
||||||
compset -P host/
|
'-q[suppress printing]' \
|
||||||
_hosts
|
'(- :)-h[display help information]' \
|
||||||
else
|
'(-c -e)-4[kerberos 4 tickets]' \
|
||||||
_alternative \
|
':principal:->principal' && ret=0
|
||||||
'users:user:_users' \
|
|
||||||
'services:service:compadd -S/ host'
|
if [[ $state = principal ]]; then
|
||||||
fi
|
if [[ -prefix host/ ]]; then
|
||||||
;;
|
compset -P host/
|
||||||
esac
|
_hosts && ret=0
|
||||||
|
else
|
||||||
|
_alternative \
|
||||||
|
'users:user:_users' \
|
||||||
|
'services:service:compadd -S/ host' && ret=0
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
return ret
|
||||||
|
|
Loading…
Reference in a new issue