Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: whence (was Re: local unfunction)
- X-seq: zsh-users 23311
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: whence (was Re: local unfunction)
- Date: Wed, 4 Apr 2018 22:08:25 -0700
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version; bh=ZnwyKR9KMeCJHnVp1/xIoeu4pE3pT/HoOuNumilrjLY=; b=nGdqqHzpZ+0K9wNULg5kELmATI1dPcoN5nRkC/XLAOqz24K4wf6eILPe0v3OUOw/ZK 80kkzC/f+Jp6FGJGL2PtmlMighsJhXodYf5Yo0Jt3iy5eEBY5bXn5uzQixAFQN1lfIoc 4vpf/roHKc73Lr7r7YaLWEyoW604z/gAPW8News7x4EEL8qY1LxZSiAHF/TiH1EuggSD q8jVtsSiGIMtqszq5bkhgrI6EKCd0J418EugUYyxGRbMxG/iCJU9fd3RIVZmXyTer363 z2jZyW+a83m2rgImzjn7Vp6SXIng9s2vS2DadEyIlbrQD5VGzoSuQBdz95yyMezJjF2O BnCA==
- In-reply-to: <f41055e7-6ad9-b54f-2b95-0e60f0b98d3c@eastlink.ca>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- List-unsubscribe: <mailto:zsh-users-unsubscribe@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <CAH+w=7Zz4HMfB_RA5nHr_i_iwKvD=S0QOjcogc0Y0OYSXv0JXw@mail.gmail.com> <6935145d-785f-f2dd-d4f2-e7ea627e2bc3@eastlink.ca> <CAH+w=7ane3_cT75hyZYp_4Zd1aT1eeDbbW9CVpBTZjAhKFQ+Qw@mail.gmail.com> <1522604036.2902094.1322956328.767274EF@webmail.messagingengine.com> <CAH+w=7YL7S-+QQD0-kLEFh=FFgLBSriEyHzbtL9cjqq_9u1U4Q@mail.gmail.com> <20180404181017.lcz74c4tyojz77ao@tarpaulin.shahaf.local2> <CAH+w=7a=5F31DYVdXH5HRJVS7V_BYCkJihznYo2TFhBMVX+BFA@mail.gmail.com> <f41055e7-6ad9-b54f-2b95-0e60f0b98d3c@eastlink.ca>
On Apr 4, 6:41pm, Ray Andrews wrote:
}
} On 04/04/18 05:20 PM, Bart Schaefer wrote:
} >
} > It's important to note that "whence -m" is doing pattern matching on
} > strings, not filename generation. It's not meant to search for files
} > in $PATH, it's meant to do "hash -m
}
} But what is the real world relevance of 'hash -m'?
Forty-two?
Seriously, "hash -m" exists because somebody in the past 25 years found
it useful to search the hash tables, and "whence -m" exists because
"hash -m" does and somebody else thought that if anything has a "search
the tables" option then everything should have a "search the tables"
option (which is also why "typeset -m" exists ... in fact I've lost
track of which chicken laid which egg).
Messages sorted by:
Reverse Date,
Date,
Thread,
Author