From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29383 invoked by alias); 23 Jun 2015 10:53:34 -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: 35573 Received: (qmail 8659 invoked from network); 23 Jun 2015 10:53:32 -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=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS autolearn=ham autolearn_force=no version=3.4.0 X-AuditID: cbfec7f4-f79c56d0000012ee-b8-55893aa7d5a3 Date: Tue, 23 Jun 2015 11:53:25 +0100 From: Peter Stephenson To: zsh-workers@zsh.org Subject: Re: "_alternative:shift:14: shift count must be <= $#" with zsh-5.0.8 Message-id: <20150623115325.6a298444@pwslap01u.europe.root.pri> In-reply-to: <20150623071613.GA398@x4> References: <20150623071613.GA398@x4> Organization: Samsung Cambridge Solution Centre X-Mailer: Claws Mail 3.7.9 (GTK+ 2.22.0; i386-redhat-linux-gnu) MIME-version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrILMWRmVeSWpSXmKPExsVy+t/xq7rLrTpDDb59trE42PyQyYHRY9XB D0wBjFFcNimpOZllqUX6dglcGZdW3mYtWMdW0d+xibmB8TNLFyMHh4SAicT5DTZdjJxAppjE hXvr2UBsIYGljBKzfzl0MXIB2TOYJOY1zmeGSGxjlHj3HqyBRUBVYknTDnYQm03AUGLqptmM ILaIgLjE2bXnWUBsYQE/iTcHJ7GC2LwC9hL7ni0Dq+EUUJPY8HUxE8RMVYlFL9aA2fwC+hJX /35igjjIXmLmlTOMEL2CEj8m3wObySygJbF5WxMrhC0vsXnNW6jb1CVu3N3NPoFRaBaSlllI WmYhaVnAyLyKUTS1NLmgOCk911CvODG3uDQvXS85P3cTIyRgv+xgXHzM6hCjAAejEg9vweSO UCHWxLLiytxDjBIczEoivCuVOkOFeFMSK6tSi/Lji0pzUosPMUpzsCiJ887d9T5ESCA9sSQ1 OzW1ILUIJsvEwSnVwNjY9J7NYd6fp0t33Ow5c93QxDdm5UUL+2N6K1x2PppcG83hGbPzzozV b4JYoyQeRnSzXm5N/CwmY/T6oNOXp64P1mYZb56qkPHdzn+mhuen5mX525S0vtolLvp34Yvm iyl1P2zF55tK3Hw7da38HOe5WjdsWIWX5Z7+Z63qFOqipJf4ZWX51lNKLMUZiYZazEXFiQCI Lm3wVAIAAA== 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