From: Oliver Kiddle <okiddle@yahoo.co.uk>
To: Zsh workers <zsh-workers@zsh.org>
Subject: Re: Completion collision, best way to fix
Date: Sun, 30 Sep 2012 22:47:39 +0200 [thread overview]
Message-ID: <21575.1349038059@thecus.kiddle.eu> (raw)
In-Reply-To: <120928204023.ZM28534@torch.brasslantern.com>
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
next prev parent reply other threads:[~2012-09-30 20:54 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-28 9:33 Baptiste Daroussin
2012-09-28 14:59 ` Bart Schaefer
2012-09-29 1:12 ` Danek Duvall
2012-09-29 1:39 ` Baptiste Daroussin
2012-09-29 1:56 ` Danek Duvall
2012-09-29 3:40 ` Bart Schaefer
2012-09-30 20:47 ` Oliver Kiddle [this message]
2012-09-29 1:53 ` Phil Pennock
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=21575.1349038059@thecus.kiddle.eu \
--to=okiddle@yahoo.co.uk \
--cc=zsh-workers@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).