zsh-workers
 help / color / mirror / code / Atom feed
* _arguments: Sets not working?
@ 2011-01-23 17:45 gi1242+zsh
  2011-01-23 18:48 ` Peter Stephenson
  2011-01-23 18:51 ` Mikael Magnusson
  0 siblings, 2 replies; 4+ messages in thread
From: gi1242+zsh @ 2011-01-23 17:45 UTC (permalink / raw)
  To: zsh-workers

Hi All,

It looks like argument sets separated by single hyphens are not working.
You can see the bug by trying to complete arguments of 'vncserver'. When
you ask for completions, none are returned. [Behaviour persists in
latest release from Git]

The vncserver code seems to use completion sets. From zshcomsys, line
3397 in zsh4.3.10:

    It is possible to specify multiple sets of options and arguments
    with the sets separated by single hyphens. The specifications before
    the first hyphen (if any) are shared by all the remaining sets.

(I couldn't get the documentation from git to build on my system, so
don't know if the behaviour has changed or not.)

When I remove lines 

      - start \
      - kill \
      - help \

from Completion/**/_vnc, then options are completed as expected. With
the above lines, I get no argument completions; and I can't figure out
how the syntax contradicts the man page. Is there a bug?

Thanks,

GI

-- 
'Disco' -- A din of iniquity.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-01-23 21:02 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-23 17:45 _arguments: Sets not working? gi1242+zsh
2011-01-23 18:48 ` Peter Stephenson
2011-01-23 18:51 ` Mikael Magnusson
2011-01-23 20:37   ` gi1242+zsh

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).