From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26924 invoked from network); 31 Dec 2007 21:51:45 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) 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.3 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 31 Dec 2007 21:51:45 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 1758 invoked from network); 31 Dec 2007 21:51:39 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 31 Dec 2007 21:51:39 -0000 Received: (qmail 27157 invoked by alias); 31 Dec 2007 21:51:36 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 24337 Received: (qmail 27143 invoked from network); 31 Dec 2007 21:51:35 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 31 Dec 2007 21:51:35 -0000 Received: from virusfilter.dotsrc.org (bifrost [127.0.0.1]) by spamfilter.dotsrc.org (Postfix) with ESMTP id 4EA038058FA9 for ; Mon, 31 Dec 2007 22:51:33 +0100 (CET) Received: from vms040pub.verizon.net (vms040pub.verizon.net [206.46.252.40]) by bifrost.dotsrc.org (Postfix) with ESMTP for ; Mon, 31 Dec 2007 22:51:32 +0100 (CET) Received: from torch.brasslantern.com ([71.121.18.67]) by vms040.mailsrvcs.net (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) with ESMTPA id <0JTX00EFVORTQOX5@vms040.mailsrvcs.net> for zsh-workers@sunsite.dk; Mon, 31 Dec 2007 15:52:42 -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 lBVLpSjM001279; Mon, 31 Dec 2007 13:51:28 -0800 Received: (from schaefer@localhost) by torch.brasslantern.com (8.13.1/8.13.1/Submit) id lBVLpSWv001278; Mon, 31 Dec 2007 13:51:28 -0800 Date: Mon, 31 Dec 2007 13:51:27 -0800 From: Bart Schaefer Subject: Re: Bug#458397: zsh: completion does not succeed with a function named the same as a command In-reply-to: <20071231161151.GA1193@scowler.net> To: 458397@bugs.debian.org Cc: zsh-workers@sunsite.dk Message-id: <071231135128.ZM1275@torch.brasslantern.com> MIME-version: 1.0 X-Mailer: OpenZMail Classic (0.9.2 24April2005) Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: quoted-printable References: <20071230224845.GA19875@chistera.yi.org> <20071231161151.GA1193@scowler.net> Comments: In reply to Clint Adams "Re: Bug#458397: zsh: completion does not succeed with a function named the same as a command" (Dec 31, 11:11am) X-Virus-Scanned: ClamAV using ClamSMTP On Dec 31, 11:11am, Clint Adams wrote: } Subject: Re: Bug#458397: zsh: completion does not succeed with a function= =20 } } On Sun, Dec 30, 2007 at 11:48:45PM +0100, Adeodato Sim=F3 wrote: } > Clint: if I have a zsh function with the same name as a binary in } > PATH, completion does not work correctly: I can type up to the whole } > name and press , and a space won't be added, it'll still offer the } > two identical names for completion. } >=20 } > I can reproduce with no zsh configuration files whatsoever. }=20 } I could just be sleep-deprived, but this seems to be fine under 4.3.4 } and spaceless under 4.3.4-dev-6. I am unable to reproduce this with 4.3.4-dev-6 on CentOS 4.6. torch% whence -av gprof=20 gprof is a shell function gprof is /usr/bin/gprof torch% gpr torch% gprof=20 I get the trailing space, zsh -f both with and without compinit loaded. I've also tried it with a command for which there is an explicit entry in the $_comps hash; I still get the space added.