From: Bart Schaefer <schaefer@brasslantern.com>
To: Zsh hackers list <zsh-workers@zsh.org>
Subject: Re: [PATCH] new completions for head and tail commands
Date: Tue, 27 Oct 2015 13:54:23 -0700 [thread overview]
Message-ID: <CAH+w=7YOw0K=mntgwuAxxo3ovVpDnL9+_dPNHRGngRrex6_CBw@mail.gmail.com> (raw)
In-Reply-To: <20151027203447.GB28241@tarsus.local2>
On Tue, Oct 27, 2015 at 1:34 PM, Daniel Shahaf <d.s@daniel.shahaf.name> wrote:
> Jun T. wrote on Tue, Oct 27, 2015 at 22:44:47 +0900:
>> + opts='-A "-*"'
>> + args=( '(-c)-n+[display the first specified lines]:number of lines' )
>> + case $OSTYPE in
>> + (freebsd*|darwin*|dragonfly*|netbsd*)
>> + args+=( '(-n)-c+[display the first specified bytes]:number of bytes' )
>> + ;;
>> + esac
>> +fi
>> +
>> +_arguments -C -s -S $opts : $args '*:file:_files' && return 0
>
> Should that be ${=opts}?
Or opts=(-A "-*") more likely.
next prev parent reply other threads:[~2015-10-27 20:54 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-27 13:44 Jun T.
2015-10-27 20:34 ` Daniel Shahaf
2015-10-27 20:54 ` Bart Schaefer [this message]
2015-10-28 12:56 ` Jun T.
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='CAH+w=7YOw0K=mntgwuAxxo3ovVpDnL9+_dPNHRGngRrex6_CBw@mail.gmail.com' \
--to=schaefer@brasslantern.com \
--cc=zsh-workers@zsh.org \
/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).