From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5213 invoked from network); 20 Feb 2009 21:44:05 -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=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; 20 Feb 2009 21:44:05 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 9380 invoked from network); 20 Feb 2009 21:43:57 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 20 Feb 2009 21:43:57 -0000 Received: (qmail 11927 invoked by alias); 20 Feb 2009 21:43:51 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 26588 Received: (qmail 11914 invoked from network); 20 Feb 2009 21:43:51 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 20 Feb 2009 21:43:51 -0000 Received: from mtaout02-winn.ispmail.ntl.com (mtaout02-winn.ispmail.ntl.com [81.103.221.48]) by bifrost.dotsrc.org (Postfix) with ESMTP id 4263680271F0 for ; Fri, 20 Feb 2009 22:43:47 +0100 (CET) Received: from aamtaout01-winn.ispmail.ntl.com ([81.103.221.35]) by mtaout02-winn.ispmail.ntl.com (InterMail vM.7.08.04.00 201-2186-134-20080326) with ESMTP id <20090220214347.YQVX4080.mtaout02-winn.ispmail.ntl.com@aamtaout01-winn.ispmail.ntl.com> for ; Fri, 20 Feb 2009 21:43:47 +0000 Received: from pws-pc ([81.107.42.185]) by aamtaout01-winn.ispmail.ntl.com (InterMail vG.2.02.00.01 201-2161-120-102-20060912) with ESMTP id <20090220214346.FACS19264.aamtaout01-winn.ispmail.ntl.com@pws-pc> for ; Fri, 20 Feb 2009 21:43:46 +0000 Date: Fri, 20 Feb 2009 21:43:38 +0000 From: Peter Stephenson To: zsh-workers@sunsite.dk Subject: Re: Why run-help gets the expanded command? Message-ID: <20090220214338.66722410@pws-pc> In-Reply-To: References: X-Mailer: Claws Mail 3.7.0 (GTK+ 2.14.7; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Cloudmark-Analysis: v=1.0 c=1 a=Lhn9jizIpRIA:10 a=B0CxN2NOR5cA:10 a=NLZqzBF-AAAA:8 a=J3F57zUDXqkWphI8j3MA:9 a=r726gP6vsireQ7IFNHsA:7 a=Kzpu-oe2R2-alriuD8nsFmrxYwUA:4 a=LY0hPdMaydYA:10 a=_dQi-Dcv4p4A:10 X-Virus-Scanned: ClamAV 0.92.1/9018/Fri Feb 20 20:07:43 2009 on bifrost X-Virus-Status: Clean On Fri, 20 Feb 2009 13:53:20 +0000 (UTC) J=C3=B6rg Sommer wrote: > I've defined some aliases like wget=3D'noglob wget'. Running run-help > (ESC=C2=A0h) for these commands gives me the help for noglob. I've checke= d 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 was possibly a better guess with older versions of run-help, but the current one will actually track back through aliases to see what commands they call so it's particularly unhelpful to be stuck with the noglob. Index: Src/Zle/zle_tricky.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /cvsroot/zsh/zsh/Src/Zle/zle_tricky.c,v retrieving revision 1.98 diff -u -r1.98 zle_tricky.c --- Src/Zle/zle_tricky.c 5 Jan 2009 11:14:53 -0000 1.98 +++ Src/Zle/zle_tricky.c 20 Feb 2009 21:41:10 -0000 @@ -2799,8 +2799,7 @@ char *s; int m =3D zmult, na =3D noaliases; =20 - if (!strcmp(bindk->nam, "which-command")) - noaliases =3D 1; + noaliases =3D 1; s =3D getcurcmd(); noaliases =3D na; if (!s) --=20 Peter Stephenson Web page now at http://homepage.ntlworld.com/p.w.stephenson/