file
から結果を取得します/etc/mime.types
。
そこから:
application / mathematica-old
application / ms-tnef
application / msaccess mdb
application / msword doc dot
application / news-message-id
アプリケーション/ニュース送信
application / ocsp-request
application / ocsp-response
mimetypeはそれを取得します...
ENVIRONMENT
XDG_DATA_HOME
XDG_DATA_DIRS
These variables can list base directories to search for data files.
The shared mime-info will be expected in the "mime" sub directory
of one of these directories. If these are not set, there will be
searched for the following directories:
$HOME/.local/share/mime
/usr/local/share/mime
/usr/share/mime
See also the "XDG Base Directory Specification"
http://freedesktop.org/Standards/basedir-spec
<http://freedesktop.org/Standards/basedir-spec>
注目に値するのは、mimetypeのmanページのこの部分です。
スイッチに名前を付けるために、可能であればfile(1)バージョン4.02のマンページに従いました。IEEE Std 1003.1-2001(POSIX)の「ユーティリティ」の章にある仕様とは完全に異なるようです。
したがって/etc/mime.types
、vnd.ms-excel
より正確なので、ファイルに対するバグと呼ぶかもしれません。