summaryrefslogtreecommitdiffstats
path: root/magic/Magdir/varied.script
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--magic/Magdir/varied.script21
1 files changed, 21 insertions, 0 deletions
diff --git a/magic/Magdir/varied.script b/magic/Magdir/varied.script
new file mode 100644
index 0000000..74b1b22
--- /dev/null
+++ b/magic/Magdir/varied.script
@@ -0,0 +1,21 @@
+#------------------------------------------------------------------------------
+# $File: varied.script,v 1.15 2022/10/18 13:01:30 christos Exp $
+# varied.script: file(1) magic for various interpreter scripts
+
+0 string/wt #!\ a
+>&-1 string/T x %s script text executable
+!:strength / 3
+
+0 string/wb #!\ a
+>&-1 string/T x %s script executable (binary data)
+!:strength / 3
+
+
+# using env
+0 string/wt #!\ /usr/bin/env a
+>15 string/T >\0 %s script text executable
+!:strength / 6
+
+0 string/wb #!\ /usr/bin/env a
+>15 string/T >\0 %s script executable (binary data)
+!:strength / 6