Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Fwd: _pick_variant
- X-seq: zsh-users 26157
- From: JAMES R CUTLER <james.cutler@xxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Fwd: _pick_variant
- Date: Thu, 12 Nov 2020 14:20:20 -0500
- Archived-at: <https://zsh.org/users/26157>
- Archived-at: <http://www.zsh.org/sympa/arcsearch_id/zsh-users/2020-11/31BCD67F-059D-4E60-9DB0-E27557368235%40mac.com>
- Authentication-results: zsh.org; iprev=pass (st43p00im-zteg10071901.me.com) smtp.remote-ip=17.58.63.169; dkim=pass header.d=mac.com header.s=1a1hai header.a=rsa-sha256; dmarc=pass header.from=mac.com; arc=none
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mac.com; s=1a1hai; t=1605208822; bh=0XcXVt7EHMqknCjri9V/mcygbeWOObRg/f7YcvNQW/A=; h=From:Content-Type:Mime-Version:Subject:Message-Id:To:Date; b=JkHdnUvdEjH+bN/sbXDE7s3lSJqKH1DZM3l4WUB+KY4QvF/BScsWqJBIxCcpu3fPT hywK3aKnp8X22BPYeJ6Gkwj9IEf1Lki6hJlosFy2+yvlI6TmbFmmU6zfzgWwebDDnT T8I1fpQhrFM352iHZjGhrGYZVQL4S3mcrHKfYJfQPNCAlY3chjhICfJSvrj4pLFJWH ovVkmBWrOsjQyD2CX+UL6LqbCKMiaM+CA3aeP2r1/YGemtze+no0EfxpntE/JhDitN f26Pbk7x5cHzsFQrOtur8P//hepkFTbNK+a3/Q5l1dHlTwyCHASK+qteotD7q994Xl aFBge+cNTvZGA==
- List-archive: <http://www.zsh.org/sympa/arc/zsh-users>
- List-help: <mailto:sympa@zsh.org?subject=help>
- List-id: <zsh-users.zsh.org>
- List-owner: <mailto:zsh-users-request@zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- List-subscribe: <mailto:sympa@zsh.org?subject=subscribe%20zsh-users>
- List-unsubscribe: <mailto:sympa@zsh.org?subject=unsubscribe%20zsh-users>
- References: <cafc3aac-62c6-1479-8812-91faa7439a1b@eastlink.ca>
- Sender: zsh-users-request@xxxxxxx
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.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author