Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: [PATCH] Document imperfections in POSIX/sh compatibility



On 11 Apr 2021, at 11:54, Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> You're talking about the thread from workers/42248, which itself
> mentions a thread from workers/35317.  Did none of those patches get
> applied?

No, this is a separate problem. POSIX says getopts shall end option processing
when it encounters either an error or a non-optarg consisting of '--' or not
beginning with '-'. zsh's getopts has no way of disabling '+'-prefixed option
handling, so it isn't conformant with that.

Regarding the other thing, Peter's patch from 35318 was applied, but mine was
not. I guess Peter wanted me to change the behaviour only with POSIX_BUILTINS
set. I'll look at it again later

dana





Messages sorted by: Reverse Date, Date, Thread, Author