1 2#------------------------------------------------------------------------------ 3# $File: commands,v 1.64 2021/04/06 15:43:11 christos Exp $ 4# commands: file(1) magic for various shells and interpreters 5# 6#0 string/w : shell archive or script for antique kernel text 70 string/wt #!\ /bin/sh POSIX shell script text executable 8!:mime text/x-shellscript 90 string/wb #!\ /bin/sh POSIX shell script executable (binary data) 10!:mime text/x-shellscript 11 120 string/wt #!\ /bin/csh C shell script text executable 13!:mime text/x-shellscript 14 15# korn shell magic, sent by George Wu, gwu@clyde.att.com 160 string/wt #!\ /bin/ksh Korn shell script text executable 17!:mime text/x-shellscript 180 string/wb #!\ /bin/ksh Korn shell script executable (binary data) 19!:mime text/x-shellscript 20 210 string/wt #!\ /bin/tcsh Tenex C shell script text executable 22!:mime text/x-shellscript 230 string/wt #!\ /usr/bin/tcsh Tenex C shell script text executable 24!:mime text/x-shellscript 250 string/wt #!\ /usr/local/tcsh Tenex C shell script text executable 26!:mime text/x-shellscript 270 string/wt #!\ /usr/local/bin/tcsh Tenex C shell script text executable 28!:mime text/x-shellscript 29 30# 31# zsh/ash/ae/nawk/gawk magic from cameron@cs.unsw.oz.au (Cameron Simpson) 320 string/wt #!\ /bin/zsh Paul Falstad's zsh script text executable 33!:mime text/x-shellscript 340 string/wt #!\ /usr/bin/zsh Paul Falstad's zsh script text executable 35!:mime text/x-shellscript 360 string/wt #!\ /usr/local/bin/zsh Paul Falstad's zsh script text executable 37!:mime text/x-shellscript 380 search/1 #!/usr/bin/env\ zsh Paul Falstad's zsh script text executable 39!:mime text/x-shellscript 40 410 string/wt #!\ /bin/ash Neil Brown's ash script text executable 42!:mime text/x-shellscript 430 string/wt #!\ /usr/bin/ash Neil Brown's ash script text executable 44!:mime text/x-shellscript 450 string/wt #!\ /usr/local/bin/ash Neil Brown's ash script text executable 46!:mime text/x-shellscript 470 string/wt #!\ /usr/local/bin/ae Neil Brown's ae script text executable 48!:mime text/x-shellscript 490 string/wt #!\ /bin/nawk new awk script text executable 50!:mime text/x-nawk 510 string/wt #!\ /usr/bin/nawk new awk script text executable 52!:mime text/x-nawk 530 string/wt #!\ /usr/local/bin/nawk new awk script text executable 54!:mime text/x-nawk 550 string/wt #!\ /bin/gawk GNU awk script text executable 56!:mime text/x-gawk 570 string/wt #!\ /usr/bin/gawk GNU awk script text executable 58!:mime text/x-gawk 590 string/wt #!\ /usr/local/bin/gawk GNU awk script text executable 60!:mime text/x-gawk 61# 620 string/wt #!\ /bin/awk awk script text executable 63!:mime text/x-awk 640 string/wt #!\ /usr/bin/awk awk script text executable 65!:mime text/x-awk 660 regex/4096 =^[\040\t\f\r\n]{0,100}BEGIN[\040\t\f\r\n]{0,100}[{] awk or perl script text 67 68# AT&T Bell Labs' Plan 9 shell 690 string/wt #!\ /bin/rc Plan 9 rc shell script text executable 70 71# bash shell magic, from Peter Tobias (tobias@server.et-inf.fho-emden.de) 720 string/wt #!\ /bin/bash Bourne-Again shell script text executable 73!:mime text/x-shellscript 740 string/wb #!\ /bin/bash Bourne-Again shell script executable (binary data) 75!:mime text/x-shellscript 760 string/wt #!\ /usr/bin/bash Bourne-Again shell script text executable 77!:mime text/x-shellscript 780 string/wb #!\ /usr/bin/bash Bourne-Again shell script executable (binary data) 79!:mime text/x-shellscript 800 string/wt #!\ /usr/local/bash Bourne-Again shell script text executable 81!:mime text/x-shellscript 820 string/wb #!\ /usr/local/bash Bourne-Again shell script executable (binary data) 83!:mime text/x-shellscript 840 string/wt #!\ /usr/local/bin/bash Bourne-Again shell script text executable 85!:mime text/x-shellscript 860 string/wb #!\ /usr/local/bin/bash Bourne-Again shell script executable (binary data) 87!:mime text/x-shellscript 880 string/wt #!\ /usr/bin/env\ bash Bourne-Again shell script text executable 89!:mime text/x-shellscript 90 91# Fish shell magic 92# From: Benjamin Lowry <ben@ben.gmbh> 930 string/wt #!\ /usr/local/bin/fish fish shell script text executable 94!:mime text/x-shellscript 950 string/wt #!\ /usr/bin/fish fish shell script text executable 96!:mime text/x-shellscript 970 string/wt #!\ /usr/bin/env\ fish fish shell script text executable 98!:mime text/x-shellscript 99 100 1010 search/1/wt #!\ /usr/bin/tclsh Tcl/Tk script text executable 102!:mime text/x-tcl 103 1040 search/1/wt #!\ /usr/bin/texlua LuaTex script text executable 105!:mime text/x-luatex 106 1070 search/1/wt #!\ /usr/bin/luatex LuaTex script text executable 108!:mime text/x-luatex 109 1100 search/1/wt #!\ /usr/bin/stap Systemtap script text executable 111!:mime text/x-systemtap 112 113 114 115# PHP scripts 116# Ulf Harnhammar <ulfh@update.uu.se> 1170 search/1/c =<?php PHP script text 118!:strength + 30 119!:mime text/x-php 1200 search/1 =<?\n PHP script text 121!:mime text/x-php 1220 search/1 =<?\r PHP script text 123!:mime text/x-php 1240 search/1/w #!\ /usr/local/bin/php PHP script text executable 125!:strength + 10 126!:mime text/x-php 1270 search/1/w #!\ /usr/bin/php PHP script text executable 128!:strength + 10 129!:mime text/x-php 130# Smarty compiled template, https://www.smarty.net/ 131# Elan Ruusamae <glen@delfi.ee> 1320 string =<?php 133>5 regex [\ \n] 134>>6 string /*\ Smarty\ version Smarty compiled template 135>>>24 regex [0-9.]+ \b, version %s 136!:mime text/x-php 137 1380 string Zend\x00 PHP script Zend Optimizer data 139 1400 string/t $! DCL command file 141 142# Type: Pdmenu 143# URL: https://packages.debian.org/pdmenu 144# From: Edward Betts <edward@debian.org> 1450 string #!/usr/bin/pdmenu Pdmenu configuration file text 146 147# From Danny Weldon 1480 string \x0b\x13\x08\x00 149>0x04 uleshort <4 ksh byte-code version %d 150