Download raw body.
[PATCH] Make incorrect ftp(1) usage more obvious
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
[PATCH] Make incorrect ftp(1) usage more obvious