From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5431 invoked from network); 18 Jan 2006 02:24:55 -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; 18 Jan 2006 02:24:55 -0000 Received: (qmail 25544 invoked from network); 18 Jan 2006 02:24:48 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 18 Jan 2006 02:24:48 -0000 Received: (qmail 27305 invoked by alias); 18 Jan 2006 02:24:40 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 9837 Received: (qmail 27295 invoked from network); 18 Jan 2006 02:24:39 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 18 Jan 2006 02:24:39 -0000 Received: (qmail 24407 invoked from network); 18 Jan 2006 02:24:39 -0000 Received: from vms046pub.verizon.net (206.46.252.46) by a.mx.sunsite.dk with SMTP; 18 Jan 2006 02:24:37 -0000 Received: from candle.brasslantern.com ([71.116.81.225]) by vms046.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0IT900GWPO0ZBF42@vms046.mailsrvcs.net> for zsh-users@sunsite.dk; Tue, 17 Jan 2006 20:24:36 -0600 (CST) Received: from candle.brasslantern.com (IDENT:schaefer@localhost [127.0.0.1]) by candle.brasslantern.com (8.12.11/8.12.11) with ESMTP id k0I2OYrk016497 for ; Tue, 17 Jan 2006 18:24:34 -0800 Received: (from schaefer@localhost) by candle.brasslantern.com (8.12.11/8.12.11/Submit) id k0I2OYZ4016496 for zsh-users@sunsite.dk; Tue, 17 Jan 2006 18:24:34 -0800 Date: Wed, 18 Jan 2006 02:24:33 +0000 From: Bart Schaefer Subject: Re: Adding nocorrect to a preexec function In-reply-to: <20060117231130.GA14934@fruitcom.com> To: zsh-users@sunsite.dk Message-id: <1060118022434.ZM16495@candle.brasslantern.com> MIME-version: 1.0 X-Mailer: Z-Mail (5.0.0 30July97) Content-type: text/plain; charset=us-ascii References: <20060117231130.GA14934@fruitcom.com> Comments: In reply to Eric Smith "Adding nocorrect to a preexec function" (Jan 18, 12:11am) On Jan 18, 12:11am, Eric Smith wrote: } } I use the following function (which is probably more complex that } required) Having stared at this for a few minutes without figuring out what the heck it's supposed to do, I can't say whether it's more complex than required or not. Have you noticed what happens when you type a command with any of the separators ; & | && || in it? Not to mention things like loop constructs. What is "cost"? } and wish to add nocorrect to it. I understand all those words, but they convey to me nothing about the desired final result ... However, at a guess, your problem is that correction takes place before preexec is ever called, so nothing you can do inside it will help.