From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 108 invoked by alias); 22 Oct 2014 08:54:01 -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: 33494 Received: (qmail 2658 invoked from network); 22 Oct 2014 08:53:46 -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=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=oquSae//HVciFADDjIc+G3RjvpYR45U80aV0vuhaWWs=; b=W7gB0KWGRyPjeoYaecQnnx9rY13L8y5lAnHxOfDKfnKr0DiUYPnu4dyaA2ARJ9Wttt sQ87c6sdYS1lppyV5Xi7vAVHa0M86CJrB9yxigRSjJWPLJ+YBnjsZ5/QU/tWZ9577pz1 lNE0hVw0PklSVmik04pv0OeztMV0qbMFkNg34sAu209Gh+/tVjjf2/bBNHK8rT5AQ7Di EUWz6pSXirAnYN+PuTmIOCmiyYFdtL0f0LArPluDs8CUDxioGcpvya3zu3PApmbLtmp0 TFj5wrc0AKRBIHtH076iyQks5IxTKFASBGFQXab6faqz4fAp5UXrGsdGpLget61y2KSu +pcA== X-Received: by 10.112.173.100 with SMTP id bj4mr22397045lbc.78.1413968020426; Wed, 22 Oct 2014 01:53:40 -0700 (PDT) Message-ID: <54477091.8050102@gmail.com> Date: Wed, 22 Oct 2014 14:53:37 +0600 From: Vasiliy Ivanov User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.8.0 MIME-Version: 1.0 To: Bart Schaefer CC: zsh-workers@zsh.org Subject: Re: _history_complete_{newer,older} complains on "unmat ched" in _all_labels if globbing References: <5446CB4F.7080808@gmail.com> <141021234353.ZM14828@torch.brasslantern.com> In-Reply-To: <141021234353.ZM14828@torch.brasslantern.com> X-Enigmail-Version: 1.6 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 10/22/14 12:43, Bart Schaefer wrote: > On Oct 22, 3:08am, Vasiliy Ivanov wrote: } } % typeset -a somevariable } % somevariable=(1 2 > 3) } } % *mevar<_history-complete-older> (completed properly, 2 items suggested - > 'somevariable=(' and } 'somevariable', guessed because expand prefix suffix style) } } but > fires hundreds of messages: } _all_labels:39: closing brace expected } ... } _all_labels:39: > unmatched ' } ... } _all_labels:39: unmatched " } } reproducible with any globbing syntax, zsh > 5.0.7 > > There's something else about your configuration that you're not telling us, because I can't get > any completions at all for *mevar unless I "setopt globcomplete", and I don't get any error > messages even with that set. > > Line 39 of _all_labels is > > "${(@)argv[4,__pre]}" "${(P@)2}" "${(@)argv[__suf,-1]}" && __ret=0 > > which ends up substituting into something like > > +_all_labels:39> compadd -1 -V -default- -X '%SCompleting %Uhistory word%u%s' -Q -a > 'historywords[beg,beg+slice]' +_all_labels:39> __ret=0 > > (though in your case the assignment to __ret is likely not happening) > I was able to reproduce with zsh -f and minimal configuration: % setopt globcomplete % autoload -U compinit % compinit but *only* with my existing (2300+ records) history file; starting with empty one doesn't throw these messages. Line 39 in my case is «compadd -1 -V -default- -Q -a historywords[beg,beg+slice]» How can I debug this further (which history records leads to «unmatched» messages)? Any hints will be extremely helpful. - -- Regards, Vasiliy Ivanov -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBAgAGBQJUR3CRAAoJEAnDj7eK12hqi+AH/R6a8YpO846e1OHZYm8RRQhj MLhfKHVbAlgpWNZsBfwhdPOKykVqdT6y5bfanLK/dz17RZ9QK9NCLCxgnsABhY05 k58F9zqCseoxvTVWTpdbLSDwgebojQHYqf8qQ0GgF5FyPl0pD5iTT5pePO/cfLg7 hqvyGdghA4Ky5E6NfaaGxlZmaZmOBDJ1altIYlMVN2tfJHs1VB5eUIzDcgaI+vkv D9TwVdADNOu/slEXfGD9UVzbP3T9FMp1YmFt1AVO2WnPo5P2oHguXjfZaNqdcoe/ 4AffM+i/RzrG0U7zjk56q2d1ezpu8RkndUSTFoC5JBhm/gd7K+CieVlhR8vSxKo= =N7u2 -----END PGP SIGNATURE-----