* Paul Wise <p...@debian.org>, 2015-09-06, 19:36:
file(1) doesn't seem to pay attention to shebangs, as far as Python is
concerned. It classified all Python scripts in my /usr/bin/ as
text/plain.
Hmm, I don't experience that issue, do you have an example?
$ dpkg-query -W file libmagic1
file 1:5.24-1
libmagic1:i386 1:5.24-1
$ head -n1 /usr/bin/check-all-the-things
#!/usr/bin/python3
$ file --mime-type /usr/bin/check-all-the-things
/usr/bin/check-all-the-things: text/plain
Hmm, but I can't reproduce it in a clean chroot, even though versions of
file nad libmagick1 are the same. Very odd...
--
Jakub Wilk