From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18754 invoked from network); 17 May 2005 17:47:31 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 17 May 2005 17:47:31 -0000 Received: (qmail 87809 invoked from network); 17 May 2005 17:47:24 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 17 May 2005 17:47:24 -0000 Received: (qmail 2035 invoked by alias); 17 May 2005 17:47:17 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 8856 Received: (qmail 2025 invoked from network); 17 May 2005 17:47:16 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 17 May 2005 17:47:16 -0000 Received: (qmail 86771 invoked from network); 17 May 2005 17:47:16 -0000 Received: from mailhost1.csr.com (HELO MAILSWEEPER01.csr.com) (81.105.217.43) by a.mx.sunsite.dk with SMTP; 17 May 2005 17:47:08 -0000 Received: from exchange03.csr.com (unverified [10.100.137.60]) by MAILSWEEPER01.csr.com (Content Technologies SMTPRS 4.3.12) with ESMTP id for ; Tue, 17 May 2005 18:45:21 +0100 Received: from news01.csr.com ([10.103.143.38]) by exchange03.csr.com with Microsoft SMTPSVC(5.0.2195.6713); Tue, 17 May 2005 18:48:30 +0100 Received: from news01.csr.com (localhost.localdomain [127.0.0.1]) by news01.csr.com (8.13.1/8.12.11) with ESMTP id j4HHl65N015976 for ; Tue, 17 May 2005 18:47:07 +0100 Received: from csr.com (pws@localhost) by news01.csr.com (8.13.1/8.13.1/Submit) with ESMTP id j4HHl6aj015972 for ; Tue, 17 May 2005 18:47:06 +0100 Message-Id: <200505171747.j4HHl6aj015972@news01.csr.com> X-Authentication-Warning: news01.csr.com: pws owned process doing -bs To: Zsh User Subject: Re: which-command help In-reply-to: <1050517170605.ZM27687@candle.brasslantern.com> References: <20050517132000.GB9627@let.rug.nl> <200505171447.j4HElTUj011344@news01.csr.com> <1050517153211.ZM27474@candle.brasslantern.com> <200505171555.j4HFtUOb012962@news01.csr.com> <1050517170605.ZM27687@candle.brasslantern.com> Date: Tue, 17 May 2005 18:47:05 +0100 From: Peter Stephenson X-OriginalArrivalTime: 17 May 2005 17:48:30.0723 (UTC) FILETIME=[A3487D30:01C55B08] 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 Bart Schaefer wrote: > } > 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? > } > } Actually, it *doesn't* fail after the patch: > > I know which-command doesn't fail. What about run-help? Oh, I see, it's one of those annoying messages you actually have to read to see what it says. Well, the simplest way around is something like the following... this may be OK because we're only dealing with builtin widgets with fixed names here. Index: Src/Zle/zle_tricky.c =================================================================== RCS file: /cvsroot/zsh/zsh/Src/Zle/zle_tricky.c,v retrieving revision 1.51 diff -u -r1.51 zle_tricky.c --- Src/Zle/zle_tricky.c 23 Feb 2005 13:50:45 -0000 1.51 +++ Src/Zle/zle_tricky.c 17 May 2005 17:44:25 -0000 @@ -2390,9 +2390,12 @@ processcmd(UNUSED(char **args)) { char *s; - int m = zmult; + int m = zmult, na = noaliases; + if (!strcmp(bindk->nam, "which-command")) + noaliases = 1; s = getcurcmd(); + noaliases = na; if (!s) return 1; zmult = 1; -- Peter Stephenson Software Engineer CSR PLC, Churchill House, Cambridge Business Park, Cowley Road Cambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070 ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. **********************************************************************