aboutsummaryrefslogtreecommitdiff
path: root/magic/Magdir/commands
diff options
context:
space:
mode:
Diffstat (limited to 'magic/Magdir/commands')
-rw-r--r--magic/Magdir/commands14
1 files changed, 13 insertions, 1 deletions
diff --git a/magic/Magdir/commands b/magic/Magdir/commands
index 6ad87fd7578d..88aa6920be86 100644
--- a/magic/Magdir/commands
+++ b/magic/Magdir/commands
@@ -1,6 +1,6 @@
#------------------------------------------------------------------------------
-# $File: commands,v 1.73 2022/11/06 18:39: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
@@ -89,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>
@@ -110,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
@@ -127,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