From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27568 invoked from network); 14 Mar 2006 17:57:00 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00, FORGED_RCVD_HELO autolearn=ham version=3.1.0 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 14 Mar 2006 17:57:00 -0000 Received: (qmail 96039 invoked from network); 14 Mar 2006 17:56:53 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 14 Mar 2006 17:56:53 -0000 Received: (qmail 22597 invoked by alias); 14 Mar 2006 17:56:40 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 22344 Received: (qmail 22516 invoked from network); 14 Mar 2006 17:56:36 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 14 Mar 2006 17:56:36 -0000 Received: (qmail 93381 invoked from network); 14 Mar 2006 17:56:36 -0000 Received: from acolyte.scowler.net (216.254.112.45) by a.mx.sunsite.dk with SMTP; 14 Mar 2006 17:56:34 -0000 Received: by acolyte.scowler.net (Postfix, from userid 1000) id A738270055; Tue, 14 Mar 2006 12:56:32 -0500 (EST) Date: Tue, 14 Mar 2006 12:56:32 -0500 From: Clint Adams To: Bart Schaefer Cc: zsh-workers@sunsite.dk Subject: Re: hashcmd path Message-ID: <20060314175632.GA4015@scowler.net> Mail-Followup-To: Bart Schaefer , zsh-workers@sunsite.dk References: <20060314033129.GA9783@scowler.net> <060313200008.ZM17898@torch.brasslantern.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <060313200008.ZM17898@torch.brasslantern.com> User-Agent: Mutt/1.5.11+cvs20060126 > The intent -- whether it still works I'm not sure -- is to hash as much > of the path as has been searched, and then the next time a command is > not found in the part already searched, hash some more. The hash table > thus never contains more than necessary. Seems that pathchecked is empty when hashcmd() is called after a spell-correction attempt, and thus the command being run never gets hashed automatically.