Index | Thread | Search

From:
Petr Ročkai <m.v0adgys6@fixp.eu>
Subject:
Re: [PATCH] Make incorrect ftp(1) usage more obvious
To:
Theo de Raadt <deraadt@openbsd.org>
Cc:
tech@openbsd.org, "H. Hartzer" <h@hartzer.sh>
Date:
Sat, 3 May 2025 17:42:54 +0200

Download raw body.

Thread
On Fri, May 02, 2025 at 05:48:48PM +0200, Theo de Raadt wrote:
> > We follow original POSIX getopt(3) rules in every program, using libc code.
> > 
> > This applies to ALL commands.  No commands are different.

This surprised me a bit, because:

    $ which grep
    /usr/bin/grep
    $ grep foo -i foo.txt
    FOO

and even

    $ grep foo foo.txt -i
    FOO

Looking at the source, the difference seems to be getopt vs getopt_long
(and there is a few other base programs that use getopt_long). POSIX
doesn't seem to mention any --options for grep either.

Yours,
  Petr

-- 
id' Ash = Ash; id' Dust = Dust; id' _ = undefined