From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 5759 invoked from network); 24 Feb 2021 21:54:54 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 24 Feb 2021 21:54:54 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1614203694; b=LIQ7Dd1i5ctP2CSy0g9iJDp2/jf4BUJNe8uGTwA3Fq//HeBF+Swvu92GuoBtDiOW+GmyOhEwFA wLI2/3RpXlDmM0mR1Md2Q1MtbeFBHJ16FlHaKsd0wV3zmh9r0i8S3mS0xQHpdZKI20gZ0PEfo6 PEAt09yZ1H9nSJx8ugn83jmAVQj4KZFpV1OHb4dhVs8f16P1S0Z29og5eL3O/+YRn/O1arp8Aq 9lBDOd+hb3HkZU+xHdHtTJxERwSyn1pseza15SbDKWLkNP1s/No34yjDeh5+8ttSqu6HtrEjZK EfBXUrV8iGrIjgFXaS50w2K0Yak3cUI0buukwWnX+eqjpQ==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-io1-f48.google.com) smtp.remote-ip=209.85.166.48; dkim=pass header.d=dana-is.20150623.gappssmtp.com header.s=20150623 header.a=rsa-sha256; dmarc=none header.from=dana.is; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20200801; t=1614203694; bh=7s5zfNUuPE2ehK90ZU5Ad7EnPh3cwydMTUSek+GH0OQ=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:To:References:Message-ID:Content-Transfer-Encoding:Cc:Date: In-Reply-To:From:Subject:MIME-Version:Content-Type:DKIM-Signature: DKIM-Signature; b=a/TqC4fIUXm+SWCHvqlLcIzFWQlEkHQy+J9P3nAaabDwcdUEAZ9VacXJFoY6RmfMgBjBJQcejg Q7RzUZmFVpgt8O15FK3dv40zaNTpt6aG4oQylvSRb+XTyRw51efLLdZZkTt8GdVrsOHMk/LSHd bwkwd017Fox0ADJ+mAYiCfGVsSgqZGYfrUwZVHN3qqBMzDOGoFDssV08ToRKKCP9/A8nBPjJ/L +VxZP51+yeX3lZnTwKW6Bxd+wTcjGsgLsMPuR4y/Ye2Kz7pwN1u5N4njdgRIVp7vB5kXXoxc+y tsiE8tr45Uictc4xGWnqMJjzYloktMvRwuALIEzQPlV6NA==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20200801; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:To:References:Message-Id: Content-Transfer-Encoding:Cc:Date:In-Reply-To:From:Subject:Mime-Version: Content-Type:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=l/lbSIEyWM23YIB0tYK+Wnd/1zbFsT9lPyASupTPOSQ=; b=UxF67ankhxuexB+e8qTsqyeKBA OUHWznskqui36s4rUW1b4MPyWwdd3JpjEZEGnrLgnvNzT4CNLZn0fEFcudEhV3J4O7GmytAflyH/i NxH6IioywTLByT8dKwCSd50vAq635WMX0R8Me4SG4vv35kAvWHlkwTItKhptAIZFzuZKt3pLLqkY9 2L6evzTwFD16Ied74lsnzsGKGuRVgGgvHiZfgCEgoBpqF3dvWtlcrIuCQzmadHekhCp6xyVjuaiUp U1YnqU+LOAWlb4u8b1CzcGlGnVx+P/Bg65idDINdWGcZFl70beyfrgF8ICZSK8w6PCuxVFhOzNcl0 W0gH118w==; Received: from authenticated user by zero.zsh.org with local id 1lF27R-000JAD-E4; Wed, 24 Feb 2021 21:54:53 +0000 Authentication-Results: zsh.org; iprev=pass (mail-io1-f48.google.com) smtp.remote-ip=209.85.166.48; dkim=pass header.d=dana-is.20150623.gappssmtp.com header.s=20150623 header.a=rsa-sha256; dmarc=none header.from=dana.is; arc=none Received: from mail-io1-f48.google.com ([209.85.166.48]:34761) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1lF276-000J0F-U7; Wed, 24 Feb 2021 21:54:34 +0000 Received: by mail-io1-f48.google.com with SMTP id y202so3701304iof.1 for ; Wed, 24 Feb 2021 13:54:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dana-is.20150623.gappssmtp.com; s=20150623; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=l/lbSIEyWM23YIB0tYK+Wnd/1zbFsT9lPyASupTPOSQ=; b=V6rp3qTjKN5tbCLCtLOlW8EmXKpEJ8JT6y+8iGLfflmN2M4uJbX9h5s63yGAzQHxjz KkgmZom/8tiZU+7Czfqe4BNM/YvlCp+O8Qf8xfeQcvI7lw9VCYGkxYKzOqTPkvbksZHP Gpw4B1zJYJ7q60DM+61bhgMK1G33ZANs7VmNFE0DBXwSrJQYcGkLg2UiYTXWo0Wij44H beVlFmXyfqALCfBPk/PX7cm+yS2tlwN2ne6pJXLRta77fiBJJnS3gt+nfHdmldF+unUg ScoJNWNGcaOysuN4ihh5GvyuAv6J1iitxD2juB8oXQ73ZBySgs6CWSEYnRIG3MEdBL7h /d3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=l/lbSIEyWM23YIB0tYK+Wnd/1zbFsT9lPyASupTPOSQ=; b=FQHKZP8dgIJJFgk2C/AQqIj2HQ3+XxU27ZErTenRDe7Xghg2vOfi2n99RIygZEh3CJ Xaggn/wfv0cleVejBvvxB+mtscVJ7fSVJUyt37kSUBuLtCdHnLGMwWEFg0Gnm5OEwfdY 7NIveuR1XWtpu/KvlIkO6Rt3WS4KRRIIGtcDytTpnbGg8Co55vXOZo2ZsaG/q0oISwTR WP5Stvf9V5EtHvOrKJRr4AkdSM26MyMKcjHACqZ7NY+WMxieG264IUSzq3sPOZYwIYdr ujOfcfzmRRyTGFtnp3CPB/QkojnZDxm9uTMRqpba+U/mt30osHXTEWarskNlrSs1zuxb +EaQ== X-Gm-Message-State: AOAM532YjOFYL/BMy/+2+08yVXFEvpNF9gBQqogo0ceWP5I9KQvkGvm4 q45vcWg8YNHdd5QpKUxnVO1gtA== X-Google-Smtp-Source: ABdhPJwTL3OIOKDxK8y7/7+kP17oS2c7k3nJbWHodQLQqgdy1FuRmVqtkBPlLJqlg2tpWdSy9riC+g== X-Received: by 2002:a05:6602:2141:: with SMTP id y1mr6004ioy.10.1614203671716; Wed, 24 Feb 2021 13:54:31 -0800 (PST) Received: from heartswap.lan.dana.is (173-17-84-59.client.mchsi.com. [173.17.84.59]) by smtp.gmail.com with ESMTPSA id l3sm2565809ioj.25.2021.02.24.13.54.30 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 24 Feb 2021 13:54:31 -0800 (PST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.4\)) Subject: Re: Completion script for the ctags program From: dana In-Reply-To: Date: Wed, 24 Feb 2021 15:54:30 -0600 Cc: zsh-workers@zsh.org Content-Transfer-Encoding: 7bit Message-Id: References: <31598-1614116362.902856@aI-l.maGv.3QD7> To: Jacob Gelbman X-Mailer: Apple Mail (2.3608.120.23.2.4) X-Seq: 48113 Archived-At: X-Loop: zsh-workers@zsh.org Errors-To: zsh-workers-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-workers-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: Archived-At: On 24 Feb 2021, at 01:20, Jacob Gelbman wrote: > local output=`ctags --version 2>&1` Sorry if this was mentioned, i only glanced at the thread, but this type of check is what _pick_variant is for. It's documented in zshcompsys(1), or you can grep for it in other completion files to see it in action. In this case, i guess something like: local variant _pick_variant -r variant \ universal='Universal Ctags' \ exuberant='Exuberant Ctags' \ emacs=Emacs \ bsd='usage: ctags' \ universal \ --version dana