[Toybox] printenv -0

Rob Landley rob at landley.net
Tue Nov 17 22:45:12 PST 2020


On 11/17/20 2:00 PM, enh wrote:
> yeah, works for me. although i don't understand _why_ that works --- i
> thought the long name had to come after the corresponding short name?

It does, it decoupled them into a bare longopt and -O (which is no longer the
first option and thus doesn't get parsed as a prefix). But the test is just "do
we have any options" so it doesn't care if bit 1 or bit 2 is set.

(I said I cheated. :)

Rob



More information about the Toybox mailing list