From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17800 invoked from network); 17 May 2005 15:32:37 -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 15:32:37 -0000 Received: (qmail 23658 invoked from network); 17 May 2005 15:32:30 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 17 May 2005 15:32:30 -0000 Received: (qmail 1748 invoked by alias); 17 May 2005 15:32:22 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 8850 Received: (qmail 1726 invoked from network); 17 May 2005 15:32:22 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 17 May 2005 15:32:22 -0000 Received: (qmail 22449 invoked from network); 17 May 2005 15:32:20 -0000 Received: from vms044pub.verizon.net (206.46.252.44) by a.mx.sunsite.dk with SMTP; 17 May 2005 15:32:16 -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 <0IGN005W54HPQA14@vms044.mailsrvcs.net> for zsh-users@sunsite.dk; Tue, 17 May 2005 10:32:14 -0500 (CDT) 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 j4HFWCAv027476; Tue, 17 May 2005 08:32:12 -0700 Received: (from schaefer@localhost) by candle.brasslantern.com (8.12.11/8.12.11/Submit) id j4HFWBap027475; Tue, 17 May 2005 08:32:11 -0700 Date: Tue, 17 May 2005 15:32:11 +0000 From: Bart Schaefer Subject: Re: which-command help In-reply-to: <200505171447.j4HElTUj011344@news01.csr.com> To: Peter Stephenson , Zsh User Message-id: <1050517153211.ZM27474@candle.brasslantern.com> MIME-version: 1.0 X-Mailer: Z-Mail (5.0.0 30July97) Content-type: text/plain; charset=us-ascii References: <20050517132000.GB9627@let.rug.nl> <200505171447.j4HElTUj011344@news01.csr.com> Comments: In reply to Peter Stephenson "Re: which-command help" (May 17, 3:47pm) 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 On May 17, 3:47pm, Peter Stephenson wrote: } Subject: Re: which-command help } } > # but if I use "^[?" (is which-command) I get: } > } > ~ % which-command /bin/ls } > /bin/ls } } The problem is that the processing of which-command within the editor } expands the alias, so that the command line that which-command sees } already has the /bin/ls expanded. } } I think this is a bug, fixed below: we don't want to expand aliases when } getting the name of the command. Compare zsh-workers/20895 and surrounding thread. Are we breaking one thing to fix another?