Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: "_alternative:shift:14: shift count must be <= $#" with zsh-5.0.8
- X-seq: zsh-workers 35574
- From: Markus Trippelsdorf <markus@xxxxxxxxxxxxxxx>
- To: Peter Stephenson <p.stephenson@xxxxxxxxxxx>
- Subject: Re: "_alternative:shift:14: shift count must be <= $#" with zsh-5.0.8
- Date: Tue, 23 Jun 2015 13:19:54 +0200
- Cc: zsh-workers@xxxxxxx
- 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=
- In-reply-to: <20150623115325.6a298444@pwslap01u.europe.root.pri>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <20150623071613.GA398@x4> <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 <markus@xxxxxxxxxxxxxxx> 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 <K> <S>
> 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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author