[clug] ? file command
Sam Couter
sam at couter.id.au
Wed Mar 28 09:39:11 GMT 2007
Adrian Blake <adrian.blake at ieee.org> wrote:
> on my machine
> > file bibliotheque_trigonometrique.f
> bibliotheque_trigonometrique.f: ISO-8859 English text
>
> > file -i bibliotheque_trigonometrique.f
> bibliotheque_trigonometrique.f: image/x-3ds
>
> different ?? why? Is there a fix? I use Mandriva 2007.
The man page for 'file' says it uses a different magic file for the '-i'
option. On my system (Debian sid) they're at /usr/share/file/magic and
/usr/share/file/magic.mime
magic.mime even has a little hint in it:
# 3DS (3d Studio files) Conflicts with diff output 0x3d '='
#16 beshort 0x3d3d image/x-3ds
Looks like 'file' can be easily confused if a file has equal signs near
the start, and the Debian maintainer (or somebody else) has disabled the
x-3ds MIME type for that reason.
--
Sam Couter | mailto:sam at couter.id.au
| jabber:sam at teknohaus.dyndns.org
OpenPGP fingerprint: A46B 9BB5 3148 7BEA 1F05 5BD5 8530 03AE DE89 C75C
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.samba.org/archive/linux/attachments/20070328/cfe71be8/attachment.bin
More information about the linux
mailing list