From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14406 invoked from network); 20 May 2005 08:30:17 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 20 May 2005 08:30:17 -0000 Received: (qmail 21491 invoked from network); 20 May 2005 08:30:11 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 20 May 2005 08:30:11 -0000 Received: (qmail 12837 invoked by alias); 20 May 2005 08:30:07 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 21268 Received: (qmail 12823 invoked from network); 20 May 2005 08:30:06 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 20 May 2005 08:30:06 -0000 Received: (qmail 21087 invoked from network); 20 May 2005 08:30:06 -0000 Received: from vms044pub.verizon.net (206.46.252.44) by a.mx.sunsite.dk with SMTP; 20 May 2005 08:30:01 -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 <0IGS00DFN4XWPVJ2@vms044.mailsrvcs.net> for zsh-workers@sunsite.dk; Fri, 20 May 2005 03:29:57 -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 j4K8Tprx006619 for ; Fri, 20 May 2005 01:29:56 -0700 Received: (from schaefer@localhost) by candle.brasslantern.com (8.12.11/8.12.11/Submit) id j4K8Tkj7006617 for zsh-workers@sunsite.dk; Fri, 20 May 2005 01:29:46 -0700 Date: Fri, 20 May 2005 08:29:45 +0000 From: Bart Schaefer Subject: Re: Completion strangeness In-reply-to: <10766.1116502140@trentino.groupinfra.com> To: zsh-workers@sunsite.dk Message-id: <1050520082945.ZM6616@candle.brasslantern.com> MIME-version: 1.0 X-Mailer: Z-Mail (5.0.0 30July97) Content-type: text/plain; charset=us-ascii References: <428A59D9.9050305@krose.org> <10766.1116502140@trentino.groupinfra.com> Comments: In reply to Oliver Kiddle "Re: Completion strangeness" (May 19, 1:29pm) 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 19, 1:29pm, Oliver Kiddle wrote: } Subject: Re: Completion strangeness } } This is unrelated to the bug Bart pointed to. I was about to say, "then I was mistaken." } We can cut this down to a minimal setup to see problems: [snip] } Patterns like '???' and '????' in compset also work. If compset has } removed four or more characters, we get the separator character (.) } inserted. So the problem is in the C code. I fiddled with this just a little. It's not always "four or more" -- it's somehow related to the length of the (un?)ambiguous prefix in the part compset leaves behind. For example, if you change yupa-dmz.valley-of-wind.krose.org to yuppa-dmz.valley-of-wind.krose.org in your minimal example (extra 'p'), then the problem appears only after compset has removed five or more characters. If you change the set of completions to yupa-dmz.valley-of-wind.krose.org \ yipa.krose.org yopa.valley-of-wind.krose.org then the problem appears only after seven or more characters are removed. And you can see it with % t 123456@y so it's not related to "kro" forming a substring of the right side.