From e9bab11f6a4baebfa01e6a754d3f5263c93e8daa Mon Sep 17 00:00:00 2001 From: Christos Zoulas Date: Fri, 11 Oct 2019 14:35:29 +0000 Subject: [PATCH] score down the rest of the interpreters so that better language-specific matches take precedence. --- magic/Magdir/varied.script | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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 -- 2.40.0