Hi Rob,

For the group __ [-abc] __ handling, while clearing the flags for the
options
to be disabled, it cleared args, for any of the set options until then.

Additional check is added to determine the options arg to be cleared.

     for (clr=gof->opts, i=1; clr; clr = clr->next, i<<=1)
-      if (clr->arg && (i & toys.optflags)) *clr->arg = 0;
+      if (clr->arg && (i & toys.optflags) &&
+          (clr->dex[1] & opt->dex[0])) *clr->arg = 0;
     toys.optflags &= ~opt->dex[0];

Patch is attached for the same.

regards,
Ashwini

Attachment: args.c.patch
Description: Binary data

_______________________________________________
Toybox mailing list
Toybox@lists.landley.net
http://lists.landley.net/listinfo.cgi/toybox-landley.net

Reply via email to