From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17616 invoked by alias); 23 Jun 2015 11:19:58 -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: 35574 Received: (qmail 7416 invoked from network); 23 Jun 2015 11:19:57 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS autolearn=ham autolearn_force=no version=3.4.0 DKIM-Signature: v=1; a=rsa-sha256; c=simple; d=mail.ud10.udmedia.de; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=beta; bh=YvgETBmb/mZ3BMf7XetF+j2exN Ot9/3H9cSPzj51EaM=; b=WNTEWtZQbI/c7yIXFFCmHOMDmr7Ps9Ba/6ZmozrLJc yJEWw+1VBACUJlW/70nqh0KM12yyQFV0jGhRZhmrFhKckuCE5/b6it59CCqbPbSc +WKHllyz3Bi59ChJg9QuBrDs0SRAb366YL9jAef7jlhODu/K5fgi8qUKhQ3Od8Ka M= Date: Tue, 23 Jun 2015 13:19:54 +0200 From: Markus Trippelsdorf To: Peter Stephenson Cc: zsh-workers@zsh.org Subject: Re: "_alternative:shift:14: shift count must be <= $#" with zsh-5.0.8 Message-ID: <20150623111954.GB405@x4> References: <20150623071613.GA398@x4> <20150623115325.6a298444@pwslap01u.europe.root.pri> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150623115325.6a298444@pwslap01u.europe.root.pri> On 2015.06.23 at 11:53 +0100, Peter Stephenson wrote: > On Tue, 23 Jun 2015 09:16:13 +0200 > Markus Trippelsdorf wrote: > > Since the update to zsh-5.0.8 I observe the following issue: > > > > _alternative:shift:14: shift count must be <= $# > > shift OPTIND-1 > > Hmm... > > POSIX_BUILTINS > Furthermore, the getopts builtin behaves in a POSIX-compatible > fashion in that the associated variable OPTIND is not made local > to functions. > > There ought to be a better way of doing this... > > pws > > diff --git a/Completion/compinit b/Completion/compinit > index 79f9d42..4b9a778 100644 > --- a/Completion/compinit > +++ b/Completion/compinit > @@ -152,6 +152,7 @@ _comp_options=( > NO_kshtypeset > NO_markdirs > NO_octalzeroes > + NO_posixbuiltins > NO_shwordsplit > NO_shglob > NO_warncreateglobal Many thanks. The patch fixes the issue. -- Markus