From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28433 invoked from network); 6 Jan 2002 02:11:40 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 6 Jan 2002 02:11:40 -0000 Received: (qmail 25626 invoked by alias); 6 Jan 2002 02:11:26 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 4565 Received: (qmail 25615 invoked from network); 6 Jan 2002 02:11:26 -0000 From: "Bart Schaefer" Message-Id: <1020106030307.ZM7583@candle.brasslantern.com> Date: Sun, 6 Jan 2002 03:03:07 +0000 In-Reply-To: <87ofkvlh37.fsf@lynx.ionific.com> Comments: In reply to Hannu Koivisto "zsh: correct 'sudo' to '_sudo' [nyae]?" (Dec 19, 11:00am) References: <87ofkvlh37.fsf@lynx.ionific.com> X-Mailer: Z-Mail (5.0.0 30July97) To: Hannu Koivisto , zsh-users@sunsite.dk Subject: Re: zsh: correct 'sudo' to '_sudo' [nyae]? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Dec 19, 11:00am, Hannu Koivisto wrote: } } I always get this message when I start a new shell (whether by } logging to a system or by saying "zsh" when I'm logged on) and try } to run sudo even though sudo is in path. rehash doesn't help, but } "which sudo" always fixes the problem. What could be the culprit? It's not surprising that "rehash" doesn't help, as all that does is empty the command hash table, and correction treats the contents of the command hash table as the correct spellings. Does "rehash -f" (both empty the command hash and refill it again) help? Do you use the HASH_LIST_ALL option? Unless that option is set, the command hash table does not automatically fill itself during correction. -- Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.brasslantern.com Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net