From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2151 invoked by alias); 25 Mar 2014 06:25:48 -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: X-Seq: 18673 Received: (qmail 11940 invoked from network); 25 Mar 2014 06:25:33 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 From: Bart Schaefer Message-id: <140324232523.ZM5058@torch.brasslantern.com> Date: Mon, 24 Mar 2014 23:25:23 -0700 In-reply-to: <5330F3B0.7030704@eastlink.ca> Comments: In reply to Ray Andrews "Re: 'whence' anomaly." (Mar 24, 8:10pm) References: <53307744.9070008@eastlink.ca> <140324154811.ZM4815@torch.brasslantern.com> <5330F3B0.7030704@eastlink.ca> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-users@zsh.org Subject: Re: 'whence' anomaly. MIME-version: 1.0 Content-type: text/plain; charset=us-ascii On Mar 24, 8:10pm, Ray Andrews wrote: } Subject: Re: 'whence' anomaly. } } On 03/24/2014 03:48 PM, Bart Schaefer wrote: } > } > "whence -m" searches, but does not populate, the command hash table. Hmm, I seem to be wrong about that. I just double-checked the code (which I didn't bother to do before) and there is a call there to fill the command hash table. Furthermore, I can't reproduce Ray's original example now, though I'm pretty certain I did at least once. } > Thus if the NO_HASH_CMDS option is set, "whence -m" does not work } > at all. [*] And this is only partly true. :-( You have to both set NO_HASH_CMDS _and_ erase the hash table with e.g. 'unhash -m \*' to break this, otherwise the aforementioned code in whence fills the table regardless of NO_HASH_CMDS. So I apologize for the red herrings. } Yikes, more ifs buts and maybes. Is there some way to get a reliable } result? Based on what I just (re)discovered, it seems necessary to go out of the way to get an UNreliable result. What are the circumstances in which you get nothing from 'whence -m', again?