From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25423 invoked by alias); 30 Sep 2012 20:54:47 -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: X-Seq: 30713 Received: (qmail 28169 invoked from network); 30 Sep 2012 20:54:44 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: * X-Spam-Status: No, score=1.0 required=5.0 tests=BAYES_20,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED,RCVD_IN_DNSWL_NONE, T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=no version=3.3.2 Received-SPF: none (ns1.primenet.com.au: domain at yahoo.co.uk does not designate permitted sender hosts) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.uk; s=s1024; t=1349038060; bh=gwbfl8fyNv++DNFZ0GvO8fUPPDYxG1lknRju3piJZZE=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Received:Received:In-reply-to:From:References:To:Subject:MIME-Version:Content-Type:Content-ID:Date:Message-ID; b=6M3tdg7IgwGF6PqgJwR28bbjRK35MajlHN3mJ9aFHM5GTi2+8X2eSEIZlp2EzTXAkq2mD9jfRCYyhIoeLtKez7RZV+wcyhJP00ir6plA0+MqUqBF3QvVESBAAEWHzJ8hfjHYjncb7zdXOHqtWj7BRSIqGz/VI3XkhoAcFZsPnPM= X-Yahoo-Newman-Id: 203702.44543.bm@smtp104.mail.ukl.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: 0g2hlvsVM1npOZdI5Ym.m9ATMGZFxWPjjkTubtqVzAUJflw wDvieIkSD1O8_Jvg74nQFUQzA2nQDgagQTkFgrNdOUpAFkv9XqA4jJFdUPNV .iFF6E_78IpQcKLjVa1vdIvE3I9WkCFa.d.70UkzgfGbhqGZ6Zv4pp_c7tNa pxpE5pqgqcC_xYm6EA_hbt0cTZtxaKrpqlSZBINmu8PZ9R46by6NCLLnZhRn pgz5MtRvCTlWd5TCmSkQQH7km8pYpJIbaoDtn.19eh1.ZIO4TuqYdAY3xi8K l0rtL7DmD1B37fJNS4noqxE.ma8qrz_HkqttuB6hYGgpdKR8YjZ05Z8kTOVV IMApC.vSI9SiLU2LryYGrpkQS78gESQGVkE6K2jFXKCzxaqMYMIk9ytnXeCA r590VcG3C0El3izBDN2vSfpo2FiPicDiGtw2JjgpSB1Ln X-Yahoo-SMTP: opAkk_CswBAce_kJ3nIPlH80cJI- In-reply-to: <120928204023.ZM28534@torch.brasslantern.com> From: Oliver Kiddle References: <120928075936.ZM28235@torch.brasslantern.com> <20120929011242.GF17010@lorien.comfychair.org> <120928204023.ZM28534@torch.brasslantern.com> To: Zsh workers Subject: Re: Completion collision, best way to fix MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <21574.1349038057.1@thecus.kiddle.eu> Date: Sun, 30 Sep 2012 22:47:39 +0200 Message-ID: <21575.1349038059@thecus.kiddle.eu> Bart wrote: > If you're going to do that, the correct way is to use _pick_variant > (Completion/Base/Utility/_pick_variant) to decide which flavor of "pkg" > you have. That way people can use zstyle to control the choice. _pick_variant distinquishes the program variants by running them, usually with an option such as --help. The Solaris pkg seems to take over a second even when doing 'pkg version' so in this case, I would simply put a test in using $OSTYPE. The only other name clash I'm aware of is nc (netcat or nedit client). In that case _netcat uses _pick_variant and calls _nedit. Oliver