[Toybox] [PATCH] Implement file(1).

Josiah Worcester josiahw at gmail.com
Sat Feb 13 13:34:07 PST 2016


On Sat, Feb 13, 2016 at 9:56 AM enh <enh at google.com> wrote:

> Unlike the POSIX file(1), there's no magic file here, just hard-coded
> common (non-obsolete) file formats. Personally most of my use of file(1)
> is as a one-line readelf(1) summarizer, so although I assume a full POSIX
> file(1) is out of scope (because just the database would likely be larger
> than all the rest of toybox), a subset that only supports in-use file types
> actually covers most of the use cases I encounter personally.
>
>
> POSIX file(1) only requires you to identify a small handful of things:
namely, the type of file (FIFO, socket, dir, normal, etc.), binaries, .a,
.cpio, .tar, .sh, .c, and .f. So a very small set of things supported is
perfectly conformant. :)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20160213/21661ab7/attachment-0004.htm>


More information about the Toybox mailing list