Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [BUG] getopts OPTIND
- X-seq: zsh-workers 42253
- From: Peter Stephenson <p.stephenson@xxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: [BUG] getopts OPTIND
- Date: Wed, 10 Jan 2018 09:05:57 +0000
- Cms-type: 201P
- Dkim-filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20180110090601euoutp0185798f966233ca84c40b76c05047f2cb~IZ5RWGc863102031020euoutp01_
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1515575161; bh=bmnfPMr+Vf8fPkdK7ok4n33cCBUOXACULkP19hPNbPU=; h=Date:From:To:Subject:In-reply-to:References:From; b=Z64/CtoRPabiSOAzWxe+ZCA+6DEmdjtxtTsjVABrRR3MK4tfEbAbgSyqAnidaJEv5 96ZaGY+aYzZuwEMDOYxh7O0V2As1vViH0LVgkxK4WDy8lsnGiAZ2uJakk/sTCvnMkc TejqNhRGeykAFoc2B8mqe/S7cZYXSlNtSV/76A8k=
- In-reply-to: <0877C4E8-4CA3-453F-A16B-99E576F60E8D@dana.is>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- Organization: Samsung Cambridge Solution Centre
- References: <CA++-COw=KgUBJc1PMq=L5be2VeJGXBjwtsRfRx7+7GSMspcQJQ@mail.gmail.com> <CGME20180109224906epcas1p3b3392bd15e2a0b2b5cfaf0571ef0a7f8@epcas1p3.samsung.com> <0877C4E8-4CA3-453F-A16B-99E576F60E8D@dana.is>
On Tue, 9 Jan 2018 16:48:17 -0600
dana <dana@xxxxxxx> wrote:
> On 9 Jan 2018, at 10:22, Francisco de Zuviría Allende <franciscodezuviria@xxxxxxxxx> wrote:
> >Execution in bash: ... OPTIND is 5, next -a
> >execution in zsh: ... OPTIND is 4, next -r
>
> I think this fixes it? At least, zsh gives the same output as bash and dash when
> i do this. Peter's left an ominous warning about changes to this function that
> deserves recognition though...
I've completely lost track of the cases that are real compatibility
problems and which are just broken, because, as just got quoted, the
code is pretty hair-raising anyway.
If we think we can get away with wrapping this change in
isset(POSIXBUILTINS) that will make it easier. It doesn't sound like it
can be wrong in that case, anyway.
pws
Messages sorted by:
Reverse Date,
Date,
Thread,
Author