zsh-workers
 help / color / mirror / code / Atom feed
From: Markus Trippelsdorf <markus@trippelsdorf.de>
To: Peter Stephenson <p.stephenson@samsung.com>
Cc: zsh-workers@zsh.org
Subject: Re: "_alternative:shift:14: shift count must be <= $#" with zsh-5.0.8
Date: Tue, 23 Jun 2015 13:19:54 +0200	[thread overview]
Message-ID: <20150623111954.GB405@x4> (raw)
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 <markus@trippelsdorf.de> 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


      reply	other threads:[~2015-06-23 11:19 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-23  7:16 Markus Trippelsdorf
2015-06-23 10:25 ` Mikael Magnusson
2015-06-23 10:41   ` Markus Trippelsdorf
2015-06-23 10:53 ` Peter Stephenson
2015-06-23 11:19   ` Markus Trippelsdorf [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150623111954.GB405@x4 \
    --to=markus@trippelsdorf.de \
    --cc=p.stephenson@samsung.com \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).