On Sun, Mar 15, 2020 at 12:21:02PM +0200, 0xef967...@gmail.com wrote:
> Notice that OpenBSD's getopt(3) explicitly allows to use "-" as an
> option character, and there may be a /separate/ bug related to that,
> but my patch doesn't change or affect it in any way.

In case it's not clear what I'm talking about, this is what happens
with the old 44bsd getopt(3) and with the current OpenBSD's getopt(3),
both with or without my patch:

OPTS=p- ./getopt-test - x y z
{./getopt-test} <-> | {x} {y} {z}

While with the svr4, glibc, musl (and other Linux) getopt(3):

OPTS=p- ./getopt-test - x y z
{./getopt-test} | {-} {x} {y} {z}

Reply via email to