From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2102 invoked by alias); 22 Oct 2014 06:44:33 -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: 33491 Received: (qmail 17225 invoked from network); 22 Oct 2014 06:44:18 -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 X-CMAE-Score: 0 X-CMAE-Analysis: v=2.1 cv=JsJGd38H c=1 sm=1 tr=0 a=FT8er97JFeGWzr5TCOCO5w==:117 a=FT8er97JFeGWzr5TCOCO5w==:17 a=VRfkd_uakS0A:10 a=kj9zAlcOel0A:10 a=q2GGsy2AAAAA:8 a=oR5dmqMzAAAA:8 a=-9mUelKeXuEA:10 a=LOikYz3PZZc0FPjMM5UA:9 a=CjuIK1q_8ugA:10 From: Bart Schaefer Message-id: <141021234353.ZM14828@torch.brasslantern.com> Date: Tue, 21 Oct 2014 23:43:53 -0700 In-reply-to: <5446CB4F.7080808@gmail.com> Comments: In reply to Vasiliy Ivanov "_history_complete_{newer,older} complains on "unmat ched" in _all_labels if globbing" (Oct 22, 3:08am) References: <5446CB4F.7080808@gmail.com> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-workers@zsh.org Subject: Re: _history_complete_{newer,older} complains on "unmat ched" in _all_labels if globbing MIME-version: 1.0 Content-type: text/plain; charset=us-ascii 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)