[Toybox] [PATCH] Minor formatting and cleanup in getopt.c

Rob Landley rob at landley.net
Fri Mar 1 19:22:03 PST 2024


On 2/29/24 19:11, Rob Landley wrote:
> Ok, optional longopts need to be attached too. Still doesn't explain the
> difference in quote output...

$ getopt -lx abc blah
 -- 'blah'
$ getopt -a abc hello
 -- 'hello'
$ getopt -npotato abc hello
 -- 'hello'
$ getopt -s sh abc hello
 -- 'hello'
$ getopt abc hello
 -- hello

If you have ANY options, it defaults to quoted output. If you have no options,
it doesn't quote the output.

Because gnu.

Rob


More information about the Toybox mailing list