Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH] new completions for head and tail commands
- X-seq: zsh-workers 36989
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: "Jun T." <takimoto-j@xxxxxxxxxxxxxxxxx>
- Subject: Re: [PATCH] new completions for head and tail commands
- Date: Tue, 27 Oct 2015 20:34:47 +0000
- Cc: zsh-workers@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= daniel.shahaf.name; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=mesmtp; bh=d/0vX1cHZSnB+IEmXQY+iB2GEPU=; b=CsbB+0 qrzUYcsAjl5Ku4Kk9NGlhqXrl8EnNp6MyHTbz/kE6BuCFlGLI0edTe8suSwN2y6J Q7OxkOXjVKV7NoL0tUrbRjBskHJTYeE8PzWY4AyReZJlH257O/IepoGW16WxgqK6 A0VSRWpTJJT4hKiA8dYggXTNtfJAuGW6LtLQg=
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=smtpout; bh=d/0vX1cHZSnB+IEmXQY+iB2GEPU=; b=U2wk2 MB6CK++qMxil+dqQ/A+FU/Oxps1JQhxnejrKPRGKMxHjRNy1j2qpQ7iB8t+qnLZl cixXNcsKF0Uiskm7joO/87CYWWQssCNBc3ZTBu0VXukKdXH7pxn8fzvD/KdP4+uV oQFRb+uso6LLieTrLv8toTu7a/nCaDjJqklaZg=
- In-reply-to: <B5E3ED95-7E9C-45C1-83C3-F14C383F01E6@kba.biglobe.ne.jp>
- 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
- References: <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}?
Messages sorted by:
Reverse Date,
Date,
Thread,
Author