From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26551 invoked from network); 3 Jan 2009 02:48:57 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.5 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 3 Jan 2009 02:48:57 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 84119 invoked from network); 3 Jan 2009 02:48:52 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 3 Jan 2009 02:48:52 -0000 Received: (qmail 4714 invoked by alias); 3 Jan 2009 02:48:45 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 26239 Received: (qmail 4700 invoked from network); 3 Jan 2009 02:48:44 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 3 Jan 2009 02:48:44 -0000 Received: from vms173001pub.verizon.net (vms173001pub.verizon.net [206.46.173.1]) by bifrost.dotsrc.org (Postfix) with ESMTP id F3BA780308BE for ; Sat, 3 Jan 2009 03:48:27 +0100 (CET) Received: from torch.brasslantern.com ([96.238.220.215]) by vms173001.mailsrvcs.net (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) with ESMTPA id <0KCV00J91JS1IY81@vms173001.mailsrvcs.net> for zsh-workers@sunsite.dk; Fri, 02 Jan 2009 20:48:06 -0600 (CST) Received: from torch.brasslantern.com (localhost.localdomain [127.0.0.1]) by torch.brasslantern.com (8.13.1/8.13.1) with ESMTP id n032m0u0026276 for ; Fri, 02 Jan 2009 18:48:01 -0800 Received: (from schaefer@localhost) by torch.brasslantern.com (8.13.1/8.13.1/Submit) id n032m0uS026275 for zsh-workers@sunsite.dk; Fri, 02 Jan 2009 18:48:00 -0800 Date: Fri, 02 Jan 2009 18:48:00 -0800 From: Bart Schaefer Subject: Re: Don't suggest completion functions when 'correcting' on non-existant commands In-reply-to: <20090102225432.GI4052@fsst.voodoo.lan> To: Zsh Workers Message-id: <090102184800.ZM26274@torch.brasslantern.com> MIME-version: 1.0 X-Mailer: OpenZMail Classic (0.9.2 24April2005) Content-type: text/plain; charset=us-ascii References: <2d460de70812310948s2ecf04e3gb13ac58311ead2f@mail.gmail.com> <20081231181247.GE4052@fsst.voodoo.lan> <081231104649.ZM22712@torch.brasslantern.com> <20090102225432.GI4052@fsst.voodoo.lan> Comments: In reply to Frank Terbeck "Re: Don't suggest completion functions when 'correcting' on non-existant commands" (Jan 2, 11:54pm) X-Virus-Scanned: ClamAV 0.92.1/8830/Fri Jan 2 17:01:42 2009 on bifrost X-Virus-Status: Clean On Jan 2, 11:54pm, Frank Terbeck wrote: } } > On Dec 31, 7:12pm, Frank Terbeck wrote: } > } } > } } > } > That's not really a solution; it just replaces the correction prompt } > with a different prompt. } } Well, to me it's not really another prompt, because you're not } actually prompted for anything. It nevertheless stops whatever is going on and makes you hit enter, which is not that much better than answering "N" to a request to correct the command name. } E.g.: If it's due to a not-yet-installed piece of software you can } push-input the current cmdline, aptitude-install (or whatever way your } OS does it) and then just hit enter to have the pushed command } executed - with the missing program installed. } } > It might be interesting for other reasons. } } What would those reasons be? ...maybe you see use-cases I didn't see, } yet. :-) Well, on Ubuntu under bash when a command is not found you get told what to do to install it (e.g. what package to apt-get install). This could be the basis for something like that for zsh.