From: Stephane Chazelas <Stephane_Chazelas@yahoo.fr>
To: Omari Norman <omari@smileystation.com>
Cc: zsh-workers@sunsite.dk
Subject: Re: New completions for awk cut join sort - attached
Date: Tue, 13 May 2008 17:07:35 +0100 [thread overview]
Message-ID: <20080513160735.GF5173@sc.homeunix.net> (raw)
In-Reply-To: <20080513155532.GA17790@cameron>
On Tue, May 13, 2008 at 11:55:32AM -0400, Omari Norman wrote:
[...]
> # completions for awk
> # This only aims to complete POSIX awk options, as described in
> # awk(P). Most awk implementations, such as gawk and mawk, will have
> # additional options that this does not complete. Also, currently
> # this completion does not allow everything that POSIX allows. For
> # example, awk(P) states that the user may specify assignments
> # without using the -v option; this does not support that.
> #
> # In addition, the "program text" completion is not perfect. For
> # instance, type "awk -" and then hit tab. You will be presented
> # both with the dashed options and with the "program text" option.
> # Fixing this is beyond my current _arguments expertise--help
> # appreciated.
>
> _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:' \
> '*:input files:_files'
[...]
Note that the remaining arguments of awk can also be awk
variable assignments or the special string "-" to specify stdin.
regards,
Stéphane
next prev parent reply other threads:[~2008-05-13 16:07 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-13 15:55 Omari Norman
2008-05-13 16:07 ` Stephane Chazelas [this message]
2008-05-13 16:11 ` Peter Stephenson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080513160735.GF5173@sc.homeunix.net \
--to=stephane_chazelas@yahoo.fr \
--cc=omari@smileystation.com \
--cc=zsh-workers@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).