zsh-users
 help / color / mirror / code / Atom feed
From: JAMES R CUTLER <james.cutler@mac.com>
To: zsh-users@zsh.org
Subject: Fwd: _pick_variant
Date: Thu, 12 Nov 2020 14:20:20 -0500	[thread overview]
Message-ID: <31BCD67F-059D-4E60-9DB0-E27557368235@mac.com> (raw)
In-Reply-To: <cafc3aac-62c6-1479-8812-91faa7439a1b@eastlink.ca>

On 2020-11-12 10:40 a.m., Roman Perepelitsa wrote:
> and discovered the hard way that zsh supplies a completion function
> for a utility of the same name

1.  The simplest technique for dealing with a flat namespace in any programming language, including shell, is to prefix local names. For example, my command scripts uses “my_” for prefixing where naming collisions may occur. I suppose I could have used “JRC_”.

2. “which” is your friend.




  parent reply	other threads:[~2020-11-12 19:20 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-13 17:41 _pick_variant Thomas Lauer
2020-11-12 18:35 ` _pick_variant Bart Schaefer
2020-11-12 18:40   ` _pick_variant Roman Perepelitsa
2020-11-12 19:07     ` _pick_variant Ray Andrews
2020-11-12 19:17       ` _pick_variant Roman Perepelitsa
2020-11-12 19:20       ` JAMES R CUTLER [this message]
2020-11-13  9:34   ` _pick_variant Thomas Lauer
2020-11-13 10:42     ` _pick_variant Roman Perepelitsa
2020-11-13 10:57       ` _pick_variant Thomas Lauer
2020-11-13 11:18       ` _pick_variant Roman Perepelitsa
2020-11-13 22:26       ` _pick_variant Bart Schaefer
2020-11-14  9:56         ` _pick_variant Thomas Lauer
2020-11-14 19:21           ` _pick_variant Bart Schaefer

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=31BCD67F-059D-4E60-9DB0-E27557368235@mac.com \
    --to=james.cutler@mac.com \
    --cc=zsh-users@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).