From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15442 invoked by alias); 9 Jun 2016 18:12:00 -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: 38643 Received: (qmail 12245 invoked from network); 9 Jun 2016 18:11:59 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:reply-to:subject:references:to:from:organization :message-id:date:user-agent:mime-version:in-reply-to :content-transfer-encoding; bh=xVY1+/Lafl5m8dXtNrSHYxHNKCLLGHDHuIJtui2eyvw=; b=JetpPBQpww3iuskP0RCHq9CvN7PESIgC0xLfHTub3I3o9cir8oLzGEJB7si8GKmlh/ bXFVI7ujIIdZ3OXk+aBERRDi4ypRBm+Gdqp0heX2xqVooVhKfk5acKy41qGz7gtgU3jh 93Zy/3nSuK06Bw1mMjlPYlU5F3LyntsnlmIbasYeD1W4CliWQS4GogVyPQkJWt4jA5Xy l8c0eCIJ4j1mvJRJItE7uvcvIdYtQrpnclQ7iu6wmP25HgHxyK78nndlnVBk3NNlrvPT lp8fAiY3Zs41kPuFW8eapl/3wNea9+5bkFucSF34RfSk8IdNgjcKBbthZjpbgaon9P0x LE5Q== X-Gm-Message-State: ALyK8tLz/rAOxurMSUW3dpkw799FTO4s1+nxnSfYm3+3X5Z7gjwr2lxDoF8FeszVZSFieubc X-Received: by 10.28.24.82 with SMTP id 79mr15288810wmy.42.1465495917370; Thu, 09 Jun 2016 11:11:57 -0700 (PDT) Reply-To: Marko Myllynen Subject: Re: _values and end of options References: <57596005.3070100@redhat.com> <2450.1465487023@thecus.kiddle.eu> To: zsh-workers@zsh.org From: Marko Myllynen Organization: Red Hat Message-ID: <5759B16B.9010800@redhat.com> Date: Thu, 9 Jun 2016 21:11:55 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.8.0 MIME-Version: 1.0 In-Reply-To: <2450.1465487023@thecus.kiddle.eu> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Hi, On 2016-06-09 18:43, Oliver Kiddle wrote: > Marko Myllynen wrote: >> >> Otherwise this works nicely (each of the options is completed only once) >> but -1 -2 are missing from offered options (see _values). I can use -- >> to have them included as well (_values -w opts -- $opts) but then -- is >> also offered. > > _values starts with a call to zparseopts to remove normal compadd > style options such as -1 and -2. In general these shouldn't occur after > (or mixed with) the values. It mostly occurs when _values is used > within an _arguments spec. In that case the unwanted options only appear > at the beginning. The following patch makes it only remove compadd style > options that occur at the beginning. > > -zparseopts -D -E -a garbage C=usecc O:=subopts M: J: V: 1 2 n F: X: > +zparseopts -D -a garbage C=usecc O:=subopts M: J: V: 1 2 n F: X: > With this change all works here now as I hoped, thanks! Cheers, -- Marko Myllynen