[Toybox] long options support and yesno()

Ashwini Sharma ak.ashwini at gmail.com
Tue Dec 4 21:34:16 PST 2012


Hi Rob,

 As for the command options FLAG_xxx macros are auto generated. Is the long
options support in there and working?

Another usage issue I came across is in yesno() function.

In that you check for the tty fd. As '0' is also tty, you print the prompt
data onto 'stdin' which doesn't show up on screen.
Putting "stdout' instead of fps[i] in fprintf shows the prompt. And reading
from fps[i] is fine.

what is your opinion on the same.

rgds,
Ashwini
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20121205/e2fe024a/attachment-0004.htm>


More information about the Toybox mailing list