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 36990
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Re: [PATCH] new completions for head and tail commands
- Date: Tue, 27 Oct 2015 13:54:23 -0700
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern_com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=YoZqjaVLerkwnXtZbeMaJ0YHwPd8WHOwKqiGsNBaRi8=; b=lh5CyiyA0XgG0CqwPc8HmqpenBUI2lElr2egijdv8zzyjHKgrduYToKljgjygz5HzL nQpgsjC0ZpuIAPp7aAwaM4qNn4GQaawVVpU+RlyAuTbBI6yhgLznigFeX7NZ5t64lvTz 1UvwFNWxTvCtdMfn54MlLkpQwFN/6ZLvjmmn520epUQJf/u7k/TyI1EFHpHggPDJ2dP+ 2ZVEmojL6tTexyVXR/PXMSjXSoW767rAy0JwxdVGVAAlJlMH4WfIEJTjrfQbxfitad2J R5/ovrI6jdO/77MkuC4YfgF4/M5H/DmPErp/1XWJ8nnVg8gy2Rojqo3o0jRBQwnRSlBg uKlg==
- In-reply-to: <20151027203447.GB28241@tarsus.local2>
- 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> <20151027203447.GB28241@tarsus.local2>
On Tue, Oct 27, 2015 at 1:34 PM, Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx> 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.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author