From: Daniel Shahaf <d.s@daniel.shahaf.name>
To: "Jun T." <takimoto-j@kba.biglobe.ne.jp>
Cc: zsh-workers@zsh.org
Subject: Re: [PATCH] new completions for head and tail commands
Date: Tue, 27 Oct 2015 20:34:47 +0000 [thread overview]
Message-ID: <20151027203447.GB28241@tarsus.local2> (raw)
In-Reply-To: <B5E3ED95-7E9C-45C1-83C3-F14C383F01E6@kba.biglobe.ne.jp>
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}?
next prev parent reply other threads:[~2015-10-27 20:34 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 [this message]
2015-10-27 20:54 ` Bart Schaefer
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=20151027203447.GB28241@tarsus.local2 \
--to=d.s@daniel.shahaf.name \
--cc=takimoto-j@kba.biglobe.ne.jp \
--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).