From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11839 invoked by alias); 23 Feb 2011 20:03:08 -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: 28798 Received: (qmail 29720 invoked from network); 23 Feb 2011 20:03:07 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 Received-SPF: none (ns1.primenet.com.au: domain at brasslantern.com does not designate permitted sender hosts) MIME-Version: 1.0 In-Reply-To: <20110223113004.6e99ffa9@pws-pc.ntlworld.com> References: <2011-02-23T11-33-06@devnull.michael-prokop.at> <20110223113004.6e99ffa9@pws-pc.ntlworld.com> Date: Wed, 23 Feb 2011 12:03:00 -0800 Message-ID: Subject: Re: Bugreport: completion hanging at ubo - endless loop From: Bart Schaefer To: Zsh hackers list Cc: "353863@bugs.debian.org" <353863@bugs.debian.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On Wednesday, February 23, 2011, Peter Stephenson wrote: > > To analyse a command line to find the current context, completion adds > an "x" at the cursor position which it later removes. =A0In this case, th= e > "x" completes the word "ubox", which is then expanded to "ls". =A0The > completion system doesn't notice and assumes it still has the original > command line. Maybe the right thing to do here is insert something other than an "x" -- a metafied character, for example, something that can't appear in normal input. Unfortunately I'm not able to look at the source at the moment so I don't know whether the string is already metafied at that point. At least pick something less likely to form part of an actual word.