mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-01-04 06:14:50 +01:00
39464: fix where lack of $state check caused unwanted filename completion for fmadm
This commit is contained in:
parent
736eb433ba
commit
01f9e54c57
2 changed files with 9 additions and 3 deletions
|
@ -1,3 +1,8 @@
|
|||
2016-09-30 Oliver Kiddle <opk@zsh.org>
|
||||
|
||||
* 39464: Completion/Solaris/Command/_fmadm: fix where lack
|
||||
of $state check caused unwanted filename completion
|
||||
|
||||
2016-09-29 Barton E. Schaefer <schaefer@zsh.org>
|
||||
|
||||
* 39507: Doc/Zsh/params.yo, Src/exec.c: TMPSUFFIX for =(...)
|
||||
|
|
|
@ -43,6 +43,7 @@ _arguments -C -A "-*" \
|
|||
'1:fmadm subcommand:compadd -M "r:|-=* r:|=*" -a subcmds' \
|
||||
'*::command:->subcmd' && ret=0
|
||||
|
||||
[[ -z $state ]] && return ret
|
||||
service="$words[1]"
|
||||
curcontext="${curcontext%:*}-$service:"
|
||||
|
||||
|
@ -59,14 +60,14 @@ case $service in
|
|||
)
|
||||
;|
|
||||
|
||||
(faulty)
|
||||
(list|faulty)
|
||||
_arguments -A "-*" $args \
|
||||
'-a[display all faults]' \
|
||||
'-g[group faults]' \
|
||||
'-n[limit output to n entries]:number'
|
||||
'-n[limit output to specified number of entries]:number'
|
||||
;;
|
||||
|
||||
(list|list-alert|list-defect|list-fault)
|
||||
(list-alert|list-defect|list-fault)
|
||||
_arguments -A "-*" $args \
|
||||
'-a[display all resources]'
|
||||
;;
|
||||
|
|
Loading…
Reference in a new issue