From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13932 invoked by alias); 9 Jun 2014 15:44:34 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 32761 Received: (qmail 8359 invoked from network); 9 Jun 2014 15:44:31 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 From: Bart Schaefer Message-id: <140609084427.ZM21515@torch.brasslantern.com> Date: Mon, 09 Jun 2014 08:44:27 -0700 In-reply-to: <1A1C7709-6FDE-4C00-A366-C6F5C6A4FACA@laposte.net> Comments: In reply to "nicolas.canceill" "Weird completion bug in Src/Zle/compmatch.c#bld_line" (Jun 9, 11:18am) References: <33086926-C7D7-4D33-AF86-4B0D48977555@laposte.net> <140607105445.ZM24783@torch.brasslantern.com> <140607123006.ZM25086@torch.brasslantern.com> <35EC1DF1-5D60-42CA-93FB-A6400E4308CF@laposte.net> <140607140205.ZM26027@torch.brasslantern.com> <24D729FF-77D8-4F38-848B-86920FE1FD11@laposte.net> <5902E7DB-F4FD-4486-BE0D-14BAA165FCE9@kba.biglobe.ne.jp> <1A1C7709-6FDE-4C00-A366-C6F5C6A4FACA@laposte.net> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: "nicolas.canceill" , zsh-workers@zsh.org Subject: Re: Weird completion bug in Src/Zle/compmatch.c#bld_line MIME-version: 1.0 Content-type: text/plain; charset=us-ascii On Jun 9, 11:18am, nicolas.canceill wrote: } } Since it initially got posted on zsh-users, let me summarize the bug } for you. This is OK because it's good to have the bug description in the archive, but it's not strictly necessary because all zsh-users mail is forwarded to zsh-workers. } Actual behavior: the suffix gets completed, but a letter is inserted } before the suffix. This letter is the n-th character of the suffix, in } inverted case. The baby changes into a pig. The "nth character in inverted case" may be a red herring. If you do % touch '?ghi' '!ghi' % : g % : \Hghi so I think we've got a simple case of a pointer running off the end of a buffer and using whatever random stuff is there, and it just happens that most of the time that's part of the suffix. -- Barton E. Schaefer