From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16229 invoked from network); 11 Mar 2005 06:26:36 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 11 Mar 2005 06:26:36 -0000 Received: (qmail 65397 invoked from network); 11 Mar 2005 06:26:30 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 11 Mar 2005 06:26:30 -0000 Received: (qmail 26100 invoked by alias); 11 Mar 2005 06:26:25 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 20963 Received: (qmail 26074 invoked from network); 11 Mar 2005 06:26:23 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 11 Mar 2005 06:26:23 -0000 Received: (qmail 64567 invoked from network); 11 Mar 2005 06:26:20 -0000 Received: from vms044pub.verizon.net (206.46.252.44) by a.mx.sunsite.dk with SMTP; 11 Mar 2005 06:26:17 -0000 Received: from candle.brasslantern.com ([4.11.1.68]) by vms044.mailsrvcs.net (Sun Java System Messaging Server 6.2 HotFix 0.04 (built Dec 24 2004)) with ESMTPA id <0ID600DNRCJRCKS2@vms044.mailsrvcs.net> for zsh-workers@sunsite.dk; Fri, 11 Mar 2005 00:26:16 -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 j2B6QEJU009692 for ; Thu, 10 Mar 2005 22:26:14 -0800 Received: (from schaefer@localhost) by candle.brasslantern.com (8.12.11/8.12.11/Submit) id j2B6QEnI009691 for zsh-workers@sunsite.dk; Thu, 10 Mar 2005 22:26:14 -0800 Date: Fri, 11 Mar 2005 06:26:14 +0000 From: Bart Schaefer Subject: Re: Fwd: Help command behavior with aliases In-reply-to: <787bbe1c0503020013234b5de@mail.gmail.com> To: Zsh Workers Message-id: <1050311062614.ZM9690@candle.brasslantern.com> MIME-version: 1.0 X-Mailer: Z-Mail (5.0.0 30July97) Content-type: text/plain; charset=us-ascii References: <787bbe1c05022810143f45e673@mail.gmail.com> <1050228190035.ZM27013@candle.brasslantern.com> <787bbe1c05022812417b32e471@mail.gmail.com> <787bbe1c0503020013234b5de@mail.gmail.com> Comments: In reply to ( Text in unknown character set UTF-8 not shown ) "Fwd: Help command behavior with aliases" (Mar 2, 9:13am) X-Spam-Checker-Version: SpamAssassin 3.0.2 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, score=-2.6 required=6.0 tests=AWL,BAYES_00 autolearn=ham version=3.0.2 X-Spam-Hits: -2.6 } Could you explain, how to change run-help behavior? Turns out I was wrong about this. The alias is expanded internally to ZLE before the run-help function is ever called, so the alias branch of the run-help case statement is wasted. Bothersome. } I had an alias which let me use } } % stop apache } } this would run /usr/local/etc/rc.d/apache.sh stop, *and* complete } apache grokking the whole path (two paths actually, /etc/rc.d and the } above). } } Can I get the completion part easily now? I'm afraid I don't understand the question, in that I don't see where completion is involved. Can you give an example? What's the input before you press TAB, and what do you expect to see afterward? } Thanks for your swift response, /S Sorry it was so much less swift this time.