From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13493 invoked by alias); 18 Oct 2016 14:12:09 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 39674 Received: (qmail 20054 invoked from network); 18 Oct 2016 14:12:09 -0000 X-Qmail-Scanner-Diagnostics: from rcpt-mqugw.biglobe.ne.jp by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(133.208.100.2):SA:0(-0.3/5.0):. Processed in 0.320738 secs); 18 Oct 2016 14:12:09 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-0.3 required=5.0 tests=RP_MATCHES_RCVD,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.1 X-Envelope-From: takimoto-j@kba.biglobe.ne.jp X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at spf01.biglobe.ne.jp designates 133.208.100.2 as permitted sender) X-Biglobe-Sender: From: "Jun T." Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Subject: _arguments: normal arg spec with empty action Message-Id: <81D02BE7-7F8E-4E46-B7A9-95A5C9D8DDF7@kba.biglobe.ne.jp> Date: Tue, 18 Oct 2016 22:35:50 +0900 To: zsh-workers@zsh.org Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) X-Mailer: Apple Mail (2.1878.6) X-Biglobe-Spnum: 58496 If I type zsh% awk - then it shows the list of options (-F -f -v), as expected. But if I hit 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'