diff options
| author | Xin LI <delphij@FreeBSD.org> | 2024-12-07 23:01:45 +0000 |
|---|---|---|
| committer | Xin LI <delphij@FreeBSD.org> | 2024-12-07 23:01:45 +0000 |
| commit | 995a16e0c2eb64b0875bccf37e696bddf35c3846 (patch) | |
| tree | 148abd89b24da103d417cf36ec01e9fb9c766b62 /magic/Magdir/commands | |
| parent | 72d4668c77f014e21af1db10648768e4843ce5d2 (diff) | |
Vendor import of file 5.46.vendor/file/5.46vendor/file
Diffstat (limited to 'magic/Magdir/commands')
| -rw-r--r-- | magic/Magdir/commands | 14 |
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 |
