Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
_arguments: normal arg spec with empty action
- X-seq: zsh-workers 39674
- From: "Jun T." <takimoto-j@xxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: _arguments: normal arg spec with empty action
- Date: Tue, 18 Oct 2016 22:35:50 +0900
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
If I type
zsh% awk -<TAB>
then it shows the list of options (-F -f -v), as expected.
But if I hit <TAB> again, it does not cycle through the options.
It seems this is caused by the empty action in the spec:
'1:program text:'
Adding a space ('1:program text: ') does not work.
The following patch fixes the problem, but is this the best way to go?
diff --git a/Completion/Unix/Command/_awk b/Completion/Unix/Command/_awk
index c493c3b..1645048 100644
--- a/Completion/Unix/Command/_awk
+++ b/Completion/Unix/Command/_awk
@@ -17,5 +17,5 @@
_arguments -S -s '-F+[define input field separator to be an extended regular expression]:extended regular expression:' \
'*-v+[assign values to variables]:assignment:' \
'(1)-f+[program file]:program file:_files' \
- '1:program text:' \
+ '1: : _message "program text"' \
'*:input files:_files'
Messages sorted by:
Reverse Date,
Date,
Thread,
Author