From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10428 invoked by alias); 5 Apr 2018 14:29:17 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: List-Unsubscribe: X-Seq: 23313 Received: (qmail 9240 invoked by uid 1010); 5 Apr 2018 14:29:17 -0000 X-Qmail-Scanner-Diagnostics: from mta04.eastlink.ca by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(24.224.136.10):SA:0(-1.9/5.0):. Processed in 14.891224 secs); 05 Apr 2018 14:29:17 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_PASS, T_RP_MATCHES_RCVD autolearn=ham autolearn_force=no version=3.4.1 X-Envelope-From: rayandrews@eastlink.ca X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | MIME-version: 1.0 Content-transfer-encoding: 8BIT Content-type: text/plain; charset=utf-8; format=flowed X-Authority-Analysis: v=2.3 cv=dfKuI0fe c=1 sm=1 tr=0 a=RnRVsdTsRxS/hkU0yKjOWA==:117 a=RnRVsdTsRxS/hkU0yKjOWA==:17 a=IkcTkHD0fZMA:10 a=PyBtJdi8W004OBBU4akA:9 a=snHF1guXLPT5cXuo:21 a=fILgLaUHYMJKQE-N:21 a=QEXdDO2ut3YA:10 X-EL-IP-NOAUTH: 24.207.101.9 Subject: Re: whence (was Re: local unfunction) To: zsh-users@zsh.org References: <6935145d-785f-f2dd-d4f2-e7ea627e2bc3@eastlink.ca> <1522604036.2902094.1322956328.767274EF@webmail.messagingengine.com> <20180404181017.lcz74c4tyojz77ao@tarpaulin.shahaf.local2> <180404220825.ZM25506@torch.brasslantern.com> From: Ray Andrews Message-id: Date: Thu, 5 Apr 2018 07:28:59 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 In-reply-to: <180404220825.ZM25506@torch.brasslantern.com> Content-language: en-CA On 04/04/18 10:08 PM, Bart Schaefer wrote: > 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). Ha!  I love these historical anecdotes.  But what we peasants need is a whence that does what God in his love wants it to do for us namely show us commands.  Even on the dot, even on Tuesday, even if the sum of the ascii values of the characters in the command is a prime number.  All the matches, all the time.  It really is unhelpful that -m and -a trip over each other.  It's Gnostic. Should switches ever do that?  Nope, either one subsumes the other, or one cancels the other, or they have entirely separate and complementary outputs.  Logically speaking we have a union minus the negation of an intersection.  Obscure. >