If you wrap string in the proper tags you will get the same result, but
with different offset (28 chars):
tee "index.html" <<eol ; echo -e "\n"; kmimetypefinder5 index.html
<!DOCTYPE html>
<html><body>`printf "x"%.0s {1..228}`
use strict
</body></html>
eol # -> text/html
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1890716
Title:
misidentifies .html file as Perl script when it contains JavaScript
"use strict"
To manage notifications about this bug go to:
https://bugs.launchpad.net/shared-mime-info/+bug/1890716/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs