From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27237 invoked from network); 21 Feb 2009 01:26:36 -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.6 required=5.0 tests=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; 21 Feb 2009 01:26:36 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 68129 invoked from network); 21 Feb 2009 01:26:29 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 21 Feb 2009 01:26:29 -0000 Received: (qmail 21228 invoked by alias); 21 Feb 2009 01:26:23 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 26589 Received: (qmail 21217 invoked from network); 21 Feb 2009 01:26:22 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 21 Feb 2009 01:26:22 -0000 Received: from vms173001pub.verizon.net (vms173001pub.verizon.net [206.46.173.1]) by bifrost.dotsrc.org (Postfix) with ESMTP id 7901580271F0 for ; Sat, 21 Feb 2009 02:26:07 +0100 (CET) Received: from torch.brasslantern.com ([173.67.122.60]) by vms173001.mailsrvcs.net (Sun Java(tm) System Messaging Server 6.3-7.04 (built Sep 26 2008; 32bit)) with ESMTPA id <0KFE007OT6N9BEVV@vms173001.mailsrvcs.net> for zsh-workers@sunsite.dk; Fri, 20 Feb 2009 19:26:03 -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 n1L1PuD7007569 for ; Fri, 20 Feb 2009 17:25:57 -0800 Received: (from schaefer@localhost) by torch.brasslantern.com (8.13.1/8.13.1/Submit) id n1L1PuGN007568 for zsh-workers@sunsite.dk; Fri, 20 Feb 2009 17:25:56 -0800 From: Bart Schaefer Message-id: <090220172556.ZM7567@torch.brasslantern.com> Date: Fri, 20 Feb 2009 17:25:56 -0800 In-reply-to: <20090220214338.66722410@pws-pc> Comments: In reply to Peter Stephenson "Re: Why run-help gets the expanded command?" (Feb 20, 9:43pm) References: <20090220214338.66722410@pws-pc> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-workers@sunsite.dk Subject: Re: Why run-help gets the expanded command? MIME-version: 1.0 Content-type: text/plain; charset=us-ascii X-Virus-Scanned: ClamAV 0.92.1/9018/Fri Feb 20 20:07:43 2009 on bifrost X-Virus-Status: Clean On Feb 20, 9:43pm, Peter Stephenson wrote: } Subject: Re: Why run-help gets the expanded command? } } On Fri, 20 Feb 2009 13:53:20 +0000 (UTC) } Jorg Sommer wrote: } > I've defined some aliases like wget='noglob wget'. Running run-help } > (ESC h) for these commands gives me the help for noglob. I've checked and } > run-help is called with noglob, i.e. the expanded command and not the one } > typed in by the user. } } I'm not quite sure what that was trying to achieve, since it doesn't do } this for which-command. It's trying to do the right thing for the dirt-simple default which is "alias run-help=man" rather than the right thing for the autoloadable shell function function named "run-help" that is now supplied with the distribution (but might not always be available and might not be in use even if it is available).