summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristos Zoulas <christos@zoulas.com>2019-10-11 14:35:29 +0000
committerChristos Zoulas <christos@zoulas.com>2019-10-11 14:35:29 +0000
commite9bab11f6a4baebfa01e6a754d3f5263c93e8daa (patch)
tree39894e746d9720f2f63bad5e828b47db4cd0dbde
parentd3132f65594e8ad27b74643786a786cd3e60c715 (diff)
downloadfile-git-e9bab11f6a4baebfa01e6a754d3f5263c93e8daa.tar.gz
score down the rest of the interpreters so that better language-specific
matches take precedence.
-rw-r--r--magic/Magdir/varied.script10
1 files changed, 9 insertions, 1 deletions
diff --git a/magic/Magdir/varied.script b/magic/Magdir/varied.script
index 11e6eb56..ff893882 100644
--- a/magic/Magdir/varied.script
+++ b/magic/Magdir/varied.script
@@ -1,30 +1,38 @@
#------------------------------------------------------------------------------
-# $File: varied.script,v 1.12 2019/04/19 00:42:27 christos Exp $
+# $File: varied.script,v 1.13 2019/10/11 14:35:29 christos Exp $
# varied.script: file(1) magic for various interpreter scripts
0 string/t #!\ / a
>3 string >\0 %s script text executable
+!:strength / 2
0 string/b #!\ / a
>3 string >\0 %s script executable (binary data)
+!:strength / 2
0 string/t #!\t/ a
>3 string >\0 %s script text executable
+!:strength / 2
0 string/b #!\t/ a
>3 string >\0 %s script executable (binary data)
+!:strength / 2
0 string/t #!/ a
>2 string >\0 %s script text executable
+!:strength / 2
0 string/b #!/ a
>2 string >\0 %s script executable (binary data)
+!:strength / 2
0 string/t #!\ script text executable
>3 string >\0 for %s
+!:strength / 2
0 string/b #!\ script executable
>3 string >\0 for %s (binary data)
+!:strength / 2
# using env
0 string/t #!/usr/bin/env a