[Toybox] Fwd: toybox - added cmp

Tim Elliott tle at holymonkey.com
Tue Feb 7 15:08:12 PST 2012


I'm attaching an implementation of head. The patch also removes a
comment in toys/nice.c.

Notes:
  * The spec states "The application shall ensure that the number
option-argument is a positive decimal integer." and this doesn't do
that. GNU coreutils has some kind of special behavior when n < 0
  * I noticed get_line() in lib/lib.c. Should I be using that instead?

Cheers,
Tim
-------------- next part --------------
A non-text attachment was scrubbed...
Name: add_head.patch
Type: text/x-patch
Size: 2003 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20120207/7dd43615/attachment-0006.bin>


More information about the Toybox mailing list