`file --mime` outputs extraneous info when run on ELFs

Mike Frysinger vapier at gentoo.org
Thu Feb 14 21:34:11 EET 2008


normally the --mime option outputs just the mime type and nothing else, but 
when it is run on an ELF, we get a lot of extra junk in there:

$ file --mime /bin/bash
/bin/bash: application/x-executable, for GNU/Linux 2.6.9, dynamically linked 
(uses shared libs), stripped

clearly we dont want anything after "application/x-executable" :)
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 827 bytes
Desc: This is a digitally signed message part.
Url : http://mx.gw.com/pipermail/file/attachments/20080214/eafdb9ca/attachment.bin 


More information about the File mailing list