Shell and bash code is sometimes detected as audio/x-mod
I noticed that sometimes my .bash_history file is shown as an Amiga-SoundTracker-Audio file in pcmanfm. These first three lines make mimetype -M
detect it as audio/x-mod:
if [[ "hallo" =~ "hallo" ]] ; then echo test; fi
if [[ "hello" =~ "hallo" ]] ; then echo test; fi
if [[ "hello" =~ "h.llo" ]] ; then echo test; fi
This text also triggers the detection as audio/x-mod:
if [ -d /etc/X11/xinit/xinitrc.d ] ; then
for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
[ -x "$f" ] && . "$f"
done
fi
Links:
- Issue at File-MimeInfo: https://github.com/mbeijen/File-MimeInfo/issues/39
- Issue at pcmanfm-qt: https://github.com/lxqt/pcmanfm-qt/issues/1093