From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29554 invoked from network); 28 Feb 2005 19:00:57 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 28 Feb 2005 19:00:57 -0000 Received: (qmail 6321 invoked from network); 28 Feb 2005 19:00:51 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 28 Feb 2005 19:00:51 -0000 Received: (qmail 29512 invoked by alias); 28 Feb 2005 19:00:42 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 20895 Received: (qmail 29497 invoked from network); 28 Feb 2005 19:00:41 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 28 Feb 2005 19:00:41 -0000 Received: (qmail 5942 invoked from network); 28 Feb 2005 19:00:41 -0000 Received: from vms048pub.verizon.net (206.46.252.48) by a.mx.sunsite.dk with SMTP; 28 Feb 2005 19:00:38 -0000 Received: from candle.brasslantern.com ([4.11.1.68]) by vms048.mailsrvcs.net (Sun Java System Messaging Server 6.2 HotFix 0.04 (built Dec 24 2004)) with ESMTPA id <0ICM00F6CY50JZB1@vms048.mailsrvcs.net> for zsh-workers@sunsite.dk; Mon, 28 Feb 2005 13:00:37 -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 j1SJ0aD2027015 for ; Mon, 28 Feb 2005 11:00:36 -0800 Received: (from schaefer@localhost) by candle.brasslantern.com (8.12.11/8.12.11/Submit) id j1SJ0aOU027014 for zsh-workers@sunsite.dk; Mon, 28 Feb 2005 11:00:36 -0800 Date: Mon, 28 Feb 2005 19:00:35 +0000 From: Bart Schaefer Subject: Re: Help command behavior with aliases In-reply-to: <787bbe1c05022810143f45e673@mail.gmail.com> To: Zsh Workers Message-id: <1050228190035.ZM27013@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> Comments: In reply to ( Text in unknown character set UTF-8 not shown ) "Help command behavior with aliases" (Feb 28, 7:14pm) 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=BAYES_00 autolearn=ham version=3.0.2 X-Spam-Hits: -2.6 On Feb 28, 7:14pm, ( Text in unknown character set UTF-8 not shown ) wrote: } } When aliasing a command and running it from CLI, help for the command } (Escape-H) is called for alias expansion, like in: } } % portupgrade zsh (type Esc-H) } } } Strange and unpleasant as well. Any reason to keep it this way? Suppose you have alias LL='ls -lL' Do you want run-help to display the man page for "ls", or do you want it to simply fail because there is no LL command? However, it's probably possible to rewrite the run-help function so that it skips command prefixes (coproc, nice, time, etc.) in alias expansions and displays the help for the following word instead.