summaryrefslogtreecommitdiff
path: root/magic/Magdir/commands
diff options
context:
space:
mode:
Diffstat (limited to 'magic/Magdir/commands')
-rw-r--r--magic/Magdir/commands62
1 files changed, 41 insertions, 21 deletions
diff --git a/magic/Magdir/commands b/magic/Magdir/commands
index 88aa6920be86..4ce9776697dd 100644
--- a/magic/Magdir/commands
+++ b/magic/Magdir/commands
@@ -1,6 +1,6 @@
#------------------------------------------------------------------------------
-# $File: commands,v 1.77 2024/11/10 16:55:15 christos Exp $
+# $File: commands,v 1.82 2026/02/16 14:39:53 christos Exp $
# commands: file(1) magic for various shells and interpreters
#
#0 string/w : shell archive or script for antique kernel text
@@ -20,13 +20,13 @@
0 string/fwb #!\ /bin/ksh Korn shell script executable (binary data)
!:mime text/x-shellscript
-0 string/fwt #!\ /bin/tcsh Tenex C shell script text executable
+0 string/fwt #!\ /bin/tcsh Tenex C shell script text executable
!:mime text/x-shellscript
0 string/fwt #!\ /usr/bin/tcsh Tenex C shell script text executable
!:mime text/x-shellscript
-0 string/fwt #!\ /usr/local/tcsh Tenex C shell script text executable
+0 string/fwt #!\ /usr/local/tcsh Tenex C shell script text executable
!:mime text/x-shellscript
-0 string/fwt #!\ /usr/local/bin/tcsh Tenex C shell script text executable
+0 string/fwt #!\ /usr/local/bin/tcsh Tenex C shell script text executable
!:mime text/x-shellscript
#
@@ -52,13 +52,13 @@
!:mime text/x-nawk
0 string/fwt #!\ /usr/bin/nawk new awk script text executable
!:mime text/x-nawk
-0 string/fwt #!\ /usr/local/bin/nawk new awk script text executable
+0 string/fwt #!\ /usr/local/bin/nawk new awk script text executable
!:mime text/x-nawk
0 string/fwt #!\ /bin/gawk GNU awk script text executable
!:mime text/x-gawk
0 string/wt #!\ /usr/bin/gawk GNU awk script text executable
!:mime text/x-gawk
-0 string/fwt #!\ /usr/local/bin/gawk GNU awk script text executable
+0 string/fwt #!\ /usr/local/bin/gawk GNU awk script text executable
!:mime text/x-gawk
#
0 string/fwt #!\ /bin/awk awk script text executable
@@ -67,6 +67,15 @@
!:mime text/x-awk
0 regex/4096 =^[\040\t\f\r\n]{0,100}BEGIN[\040\t\f\r\n]{0,100}[{] awk or perl script text
+0 string/fwt #!\ /bin/lua Lua script text executable
+!:mime text/x-lua
+0 string/fwt #!\ /usr/bin/lua Lua script text executable
+!:mime text/x-lua
+0 string/fwt #!\ /usr/bin/env\ lua Lua script text executable
+!:mime text/x-lua
+0 string/fwt #!\ /bin/env\ lua Lua script text executable
+!:mime text/x-lua
+
# AT&T Bell Labs' Plan 9 shell
0 string/fwt #!\ /bin/rc Plan 9 rc shell script text executable
@@ -83,9 +92,9 @@
!:mime text/x-shellscript
0 string/fwb #!\ /usr/local/bash Bourne-Again shell script executable (binary data)
!:mime text/x-shellscript
-0 string/fwt #!\ /usr/local/bin/bash Bourne-Again shell script text executable
+0 string/fwt #!\ /usr/local/bin/bash Bourne-Again shell script text executable
!:mime text/x-shellscript
-0 string/fwb #!\ /usr/local/bin/bash Bourne-Again shell script executable (binary data)
+0 string/fwb #!\ /usr/local/bin/bash Bourne-Again shell script executable (binary data)
!:mime text/x-shellscript
0 string/fwt #!\ /usr/bin/env\ bash Bourne-Again shell script text executable
!:mime text/x-shellscript
@@ -107,22 +116,33 @@
!:mime text/x-shellscript
0 search/1/fwt #!\ /usr/bin/tclsh Tcl/Tk script text executable
-!:mime text/x-tcl
+!:mime text/x-tcl
0 search/1/fwt #!\ /usr/bin/texlua LuaTex script text executable
!:mime text/x-luatex
+0 search/1/fwt #!\ /usr/bin/env\ texlua LuaTex script text executable
+!:mime text/x-luatex
+0 search/1/fwt #!\ /bin/env\ texlua LuaTex script text executable
+!:mime text/x-luatex
0 search/1/fwt #!\ /usr/bin/luatex LuaTex script text executable
!:mime text/x-luatex
0 search/1/fwt #!\ /usr/bin/stap Systemtap script text executable
-!:mime text/x-systemtap
+!:mime text/x-systemtap
0 search/1/fwt #!\ /sbin/openrc-run OpenRC script text executable
-!:mime text/x-shellscript
+!:mime text/x-shellscript
+
+# From: Marc Chantreux <mc@unistra.fr>
+# [Raku](https://raku.org/) script
+0 string/fwt #!\ /bin/raku Raku (http://raku.org) script
+!:mime text/x-raku
+0 string/fwt #!\ /usr/bin/raku Raku (http://raku.org) script
+!:mime text/x-raku
# From: Kylie McClain <kylie@somas.is>
# Type: execline scripts
-# URL: https://skarnet.org/software/execline/
+# URL: https://skarnet.org/software/execline/
0 string/fwt #!\ /command/execlineb execline script text executable
!:mime text/x-execline
0 string/fwt #!\ /bin/execlineb execline script text executable
@@ -142,17 +162,17 @@
# PHP scripts
# Ulf Harnhammar <ulfh@update.uu.se>
0 search/1/c =<?php PHP script text
-!:strength + 30
+!:strength + 55
!:mime text/x-php
0 search/1 =<?\n PHP script text
!:mime text/x-php
0 search/1 =<?\r PHP script text
!:mime text/x-php
0 search/1/w #!\ /usr/local/bin/php PHP script text executable
-!:strength + 10
+!:strength + 55
!:mime text/x-php
0 search/1/w #!\ /usr/bin/php PHP script text executable
-!:strength + 10
+!:strength + 55
!:mime text/x-php
# Smarty compiled template, https://www.smarty.net/
# Elan Ruusamae <glen@delfi.ee>
@@ -193,21 +213,21 @@
0 string/t $! DCL command file
# Type: Pdmenu
-# URL: https://packages.debian.org/pdmenu
+# URL: https://packages.debian.org/pdmenu
# From: Edward Betts <edward@debian.org>
0 string #!/usr/bin/pdmenu Pdmenu configuration file text
# From Danny Weldon
0 string \x0b\x13\x08\x00
->0x04 uleshort <4 ksh byte-code version %d
+>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 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
+0 string/fwt #!\ /usr/bin/env\ julia Julia script executable