zsh-workers
 help / color / mirror / code / Atom feed
* empty action handling of _arguments and _alternative
@ 2000-05-06  9:03 Tanaka Akira
  0 siblings, 0 replies; only message in thread
From: Tanaka Akira @ 2000-05-06  9:03 UTC (permalink / raw)
  To: zsh-workers

I found a difference of empty action handling between _arguments and
_alternative.

Z(5):akr@serein% Src/zsh -f
serein% bindkey -e; autoload -U compinit; compinit -D
serein% zstyle ':completion:*:messages' format %d
serein% compdef _tst1 tst1; _tst1 () { _arguments '-o::o:' ':a:' }
serein% compdef _tst2 tst2; _tst2 () { _alternative 'option-o-1:o:' 'argument-1:a:' }

serein% tst1 -o <TAB>
a

serein% tst2 <TAB>
o
a

_arguments shows only `a' but _alternative shows both.  They has tags
`option-o-1' and `argument-1' orderd by defafult tag-order specified
in _tags.  Is this intentional?
-- 
Tanaka Akira


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2000-05-06  9:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-05-06  9:03 empty action handling of _arguments and _alternative Tanaka Akira

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).