Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH] Document imperfections in POSIX/sh compatibility
- X-seq: zsh-workers 48509
- From: dana <dana@xxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Cc: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Re: [PATCH] Document imperfections in POSIX/sh compatibility
- Date: Sun, 11 Apr 2021 18:04:01 -0500
- Archived-at: <https://zsh.org/workers/48509>
- In-reply-to: <CAH+w=7a6sjNJsDv4KJyW-o45+Q7GNEp7_TL4LGd-os1ozF8T9A@mail.gmail.com>
- List-id: <zsh-workers.zsh.org>
- References: <7FD930F4-37CD-402B-9A06-893818856199@dana.is> <CAH+w=7aAZKpT0f5LT7RaoCehyO6UZe6FimzuQqOP4o=+EwZs2w@mail.gmail.com> <F56FD538-0428-4D03-BBE2-6E53154EC0EA@dana.is> <CAH+w=7a6sjNJsDv4KJyW-o45+Q7GNEp7_TL4LGd-os1ozF8T9A@mail.gmail.com>
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