From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21763 invoked by alias); 3 Jun 2018 04:58:53 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: List-Unsubscribe: X-Seq: 42922 Received: (qmail 5085 invoked by uid 1010); 3 Jun 2018 04:58:53 -0000 X-Qmail-Scanner-Diagnostics: from mail-io0-f195.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(209.85.223.195):SA:0(-3.6/5.0):. Processed in 1.265441 secs); 03 Jun 2018 04:58:53 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-3.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_PASS,T_DKIMWL_WL_MED,T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.1 X-Envelope-From: dana@dana.is X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dana-is.20150623.gappssmtp.com; s=20150623; h=from:content-transfer-encoding:mime-version:subject:date:references :to:in-reply-to:message-id; bh=mkXtDVpn81QpI8x9tM+inh2YDr1Hpn+aGLlWna7J2Fs=; b=eqYhj3ftc1VDGZljXUwiV3iuUVNeMze3Tun4A055+ROHdzuxBlUJFEuCkDVxqa+Uzq u+ngWSuUFLivtIq3ikSeNsKs/8MNhT5zQdt5swxF5qtjxufSgpeQN/g9MgzCrEPl3IxL raYySAvFZdvLJr+rg8rmaXBsmX3K/OadEZtvqT+9G3aTdXrNfDLomlyC8BrY41IZRzne PW+M1a6g3RzfVjBO9qf4VhI/NOjj+8e39Q0mY0kFr9RafkTa0Le1r6/xIkRVZMcEGdLO T/6u1fPP6GUAK3Dtq2uQ/PGIUxBYiG834QpjypWLqtaDFQpHXUhxuZ8GAcsBYj9eNp8h e94g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:content-transfer-encoding:mime-version :subject:date:references:to:in-reply-to:message-id; bh=mkXtDVpn81QpI8x9tM+inh2YDr1Hpn+aGLlWna7J2Fs=; b=nkxAXTEbQ8CXLDyUkcZG0/9859llx4CRl/0s/G/1fSJoDr/XRChKAIlRqjfkCKABB9 Va2tzH1fsdZZ/A5q9Nnp2VgRdGLDddpOH5A8tPtM3D4470UrFCNRZ3+H104N1piuttTD BhNKX/nvEPHTkNIlj/daMLpmL2rW979eH+JZ8MgBQmKg/G2qpfZPqqqs3kBryzTE0nmQ 2fPdxSrYJkxHJmxhkfo6ugbcbpyshq62C9d759Mb6Ft/HFou2DQCAVj3HWbyg60Dha1x f6hXmtgxHDLdCqlFKyYlhYegUdlSRvdEigEyfnfsEQxtAQcFrzHcsg7gK98+LuPQgRB7 jrtQ== X-Gm-Message-State: APt69E3OvSxnSlFMWuAvRhYmdtMwqPnLNh8K9iqqxh6wn2Dq1ef45yrU I1iox4dgGHHkhwxICONj+F9M27F5Cnw= X-Google-Smtp-Source: ADUXVKKkKOWk+BJU6d4ZQSiijFUYJo3hEKRwdQ2V2MzJqeGoE2fdp/zj7my10XXrBzmpJLYn7tRPzw== X-Received: by 2002:a5e:880b:: with SMTP id l11-v6mr9435454ioj.241.1528001929200; Sat, 02 Jun 2018 21:58:49 -0700 (PDT) From: dana Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: [PATCH] Completion: Add _shuf, _tac, _uptime Date: Sat, 2 Jun 2018 23:58:47 -0500 References: <873B8FFF-F1A3-4D2E-A465-8BD4042045BC@dana.is> To: Zsh workers In-Reply-To: <873B8FFF-F1A3-4D2E-A465-8BD4042045BC@dana.is> Message-Id: X-Mailer: Apple Mail (2.3273) On 2 Jun 2018, at 18:07, dana wrote: >tac (from GNU Coreutils) Martin alerted me to the fact that NetBSD has recently gained its own = version of tac. Sorry, i should have checked more thoroughly. Anyway, we might as = well support it properly if we're adding stuff =E2=80=94 here's a new patch. = (The other two are still fine.) dana diff --git a/Completion/Unix/Command/_tac b/Completion/Unix/Command/_tac new file mode 100644 index 000000000..7a15bffff --- /dev/null +++ b/Completion/Unix/Command/_tac @@ -0,0 +1,19 @@ +#compdef tac gtac + +local variant + +_pick_variant -r variant gnu=3D'Free Soft' unix --version + +# NetBSD (at least) has its own bare-bones version of this tool +[[ $variant =3D=3D gnu ]] || { + _default + return +} + +_arguments -s -S : \ + '(: -)--help[display help information]' \ + '(: -)--version[display version information]' \ + '(-b --before)'{-b,--before}'[attach separator before instead of = after]' \ + '(-r --regex)'{-r,--regex}'[treat separator as regular expression = (with -s)]' \ + '(-s --separator)'{-s+,--separator=3D}'[use specified separator = instead of newline]:separator' \ + '*: :_files'