Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
_arguments: Sets not working?
- X-seq: zsh-workers 28643
- From: gi1242+zsh@xxxxxxxxx
- To: zsh-workers@xxxxxxx
- Subject: _arguments: Sets not working?
- Date: Sun, 23 Jan 2011 12:45:08 -0500
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mail-followup-to: gi1242+zsh@xxxxxxxxx, zsh-workers@xxxxxxx
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
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.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author