aboutsummaryrefslogtreecommitdiff
path: root/contrib/file/magic/Magdir/commands
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/file/magic/Magdir/commands')
-rw-r--r--contrib/file/magic/Magdir/commands30
1 files changed, 26 insertions, 4 deletions
diff --git a/contrib/file/magic/Magdir/commands b/contrib/file/magic/Magdir/commands
index a257eb2b7a13..88aa6920be86 100644
--- a/contrib/file/magic/Magdir/commands
+++ b/contrib/file/magic/Magdir/commands
@@ -1,6 +1,6 @@
#------------------------------------------------------------------------------
-# $File: commands,v 1.69 2022/04/20 21:14:23 christos Exp $
+# $File: commands,v 1.77 2024/11/10 16:55:15 christos Exp $
# commands: file(1) magic for various shells and interpreters
#
#0 string/w : shell archive or script for antique kernel text
@@ -8,6 +8,8 @@
!:mime text/x-shellscript
0 string/fwb #!\ /bin/sh POSIX shell script executable (binary data)
!:mime text/x-shellscript
+>10 string #\040This\040script\040was\040generated\040using\040Makeself \b, self-executable archive
+>>53 string x \b, Makeself %s
0 string/fwt #!\ /bin/csh C shell script text executable
!:mime text/x-shellscript
@@ -87,6 +89,13 @@
!:mime text/x-shellscript
0 string/fwt #!\ /usr/bin/env\ bash Bourne-Again shell script text executable
!:mime text/x-shellscript
+0 string/fwt #!\ /bin/env\ bash Bourne-Again shell script text executable
+!:mime text/x-shellscript
+
+0 string/fwt #!\ /bin/dash Dash shell script text executable
+!:mime text/x-shellscript
+0 string/fwt #!\ /usr/bin/dash Dash shell script text executable
+!:mime text/x-shellscript
# Fish shell magic
# From: Benjamin Lowry <ben@ben.gmbh>
@@ -97,9 +106,6 @@
0 string/fwt #!\ /usr/bin/env\ fish fish shell script text executable
!:mime text/x-shellscript
-0 string/wt #!\ a
->&-1 string/T x %s script text executable
-
0 search/1/fwt #!\ /usr/bin/tclsh Tcl/Tk script text executable
!:mime text/x-tcl
@@ -111,6 +117,8 @@
0 search/1/fwt #!\ /usr/bin/stap Systemtap script text executable
!:mime text/x-systemtap
+0 search/1/fwt #!\ /sbin/openrc-run OpenRC script text executable
+!:mime text/x-shellscript
# From: Kylie McClain <kylie@somas.is>
# Type: execline scripts
@@ -128,6 +136,9 @@
>0 regex \^#!.*/bin/execlineb([[:space:]].*)*$ execline script text executable
!:mime text/x-execline
+0 string #!/nix/store/
+>&-11 string/T x a %s script text executable
+
# PHP scripts
# Ulf Harnhammar <ulfh@update.uu.se>
0 search/1/c =<?php PHP script text
@@ -189,3 +200,14 @@
# From Danny Weldon
0 string \x0b\x13\x08\x00
>0x04 uleshort <4 ksh byte-code version %d
+
+# From: arno <arenevier@fdn.fr>
+# mozilla xpconnect typelib
+# see https://www.mozilla.org/scriptable/typelib_file.html
+0 string XPCOM\nTypeLib\r\n\032 XPConnect Typelib
+>0x10 byte x version %d
+>>0x11 byte x \b.%d
+
+0 string/fwt #!\ /usr/bin/env\ runghc GHC script executable
+0 string/fwt #!\ /usr/bin/env\ runhaskell Haskell script executable
+0 string/fwt #!\ /usr/bin/env\ julia Julia script executable