168349Sobrien
268349Sobrien#------------------------------------------------------------------------------
3284778Sdelphij# $File: commands,v 1.52 2015/06/04 19:16:55 christos Exp $
468349Sobrien# commands:  file(1) magic for various shells and interpreters
568349Sobrien#
6226048Sobrien#0	string/w	:			shell archive or script for antique kernel text
7226048Sobrien0	string/wt	#!\ /bin/sh		POSIX shell script text executable
8186690Sobrien!:mime	text/x-shellscript
9267843Sdelphij0	string/wb	#!\ /bin/sh		POSIX shell script executable (binary data)
10267843Sdelphij!:mime	text/x-shellscript
11267843Sdelphij
12226048Sobrien0	string/wt	#!\ /bin/csh		C shell script text executable
13186690Sobrien!:mime	text/x-shellscript
14267843Sdelphij
1568349Sobrien# korn shell magic, sent by George Wu, gwu@clyde.att.com
16226048Sobrien0	string/wt	#!\ /bin/ksh		Korn shell script text executable
17186690Sobrien!:mime	text/x-shellscript
18267843Sdelphij0	string/wb	#!\ /bin/ksh		Korn shell script executable (binary data)
19267843Sdelphij!:mime	text/x-shellscript
20267843Sdelphij
21226048Sobrien0	string/wt 	#!\ /bin/tcsh		Tenex C shell script text executable
22186690Sobrien!:mime	text/x-shellscript
23226048Sobrien0	string/wt	#!\ /usr/bin/tcsh	Tenex C shell script text executable
24186690Sobrien!:mime	text/x-shellscript
25226048Sobrien0	string/wt 	#!\ /usr/local/tcsh	Tenex C shell script text executable
26186690Sobrien!:mime	text/x-shellscript
27226048Sobrien0	string/wt	#!\ /usr/local/bin/tcsh	Tenex C shell script text executable
28226048Sobrien!:mime	text/x-shellscript
2968349Sobrien
3068349Sobrien#
3168349Sobrien# zsh/ash/ae/nawk/gawk magic from cameron@cs.unsw.oz.au (Cameron Simpson)
32226048Sobrien0	string/wt	#!\ /bin/zsh		Paul Falstad's zsh script text executable
33186690Sobrien!:mime	text/x-shellscript
34226048Sobrien0	string/wt	#!\ /usr/bin/zsh	Paul Falstad's zsh script text executable
35186690Sobrien!:mime	text/x-shellscript
36226048Sobrien0	string/wt	#!\ /usr/local/bin/zsh	Paul Falstad's zsh script text executable
37186690Sobrien!:mime	text/x-shellscript
38226048Sobrien0	string/wt	#!\ /usr/local/bin/ash	Neil Brown's ash script text executable
39186690Sobrien!:mime	text/x-shellscript
40226048Sobrien0	string/wt	#!\ /usr/local/bin/ae	Neil Brown's ae script text executable
41186690Sobrien!:mime	text/x-shellscript
42226048Sobrien0	string/wt	#!\ /bin/nawk		new awk script text executable
43186690Sobrien!:mime	text/x-nawk
44226048Sobrien0	string/wt	#!\ /usr/bin/nawk	new awk script text executable
45186690Sobrien!:mime	text/x-nawk
46226048Sobrien0	string/wt	#!\ /usr/local/bin/nawk	new awk script text executable
47186690Sobrien!:mime	text/x-nawk
48226048Sobrien0	string/wt	#!\ /bin/gawk		GNU awk script text executable
49186690Sobrien!:mime	text/x-gawk
50226048Sobrien0	string/wt	#!\ /usr/bin/gawk	GNU awk script text executable
51186690Sobrien!:mime	text/x-gawk
52226048Sobrien0	string/wt	#!\ /usr/local/bin/gawk	GNU awk script text executable
53186690Sobrien!:mime	text/x-gawk
5468349Sobrien#
55226048Sobrien0	string/wt	#!\ /bin/awk		awk script text executable
56186690Sobrien!:mime	text/x-awk
57226048Sobrien0	string/wt	#!\ /usr/bin/awk	awk script text executable
58186690Sobrien!:mime	text/x-awk
59276415Sdelphij0	regex/4096	=^\\s{0,100}BEGIN\\s{0,100}[{]	awk or perl script text
6068349Sobrien
6168349Sobrien# AT&T Bell Labs' Plan 9 shell
62226048Sobrien0	string/wt	#!\ /bin/rc	Plan 9 rc shell script text executable
6368349Sobrien
6468349Sobrien# bash shell magic, from Peter Tobias (tobias@server.et-inf.fho-emden.de)
65226048Sobrien0	string/wt	#!\ /bin/bash	Bourne-Again shell script text executable
66186690Sobrien!:mime	text/x-shellscript
67267843Sdelphij0	string/wb	#!\ /bin/bash	Bourne-Again shell script executable (binary data)
68267843Sdelphij!:mime	text/x-shellscript
69226048Sobrien0	string/wt	#!\ /usr/bin/bash	Bourne-Again shell script text executable
70186690Sobrien!:mime	text/x-shellscript
71267843Sdelphij0	string/wb	#!\ /usr/bin/bash	Bourne-Again shell script executable (binary data)
72267843Sdelphij!:mime	text/x-shellscript
73226048Sobrien0	string/wt	#!\ /usr/local/bash	Bourne-Again shell script text executable
74226048Sobrien!:mime	text/x-shellscript
75267843Sdelphij0	string/wb	#!\ /usr/local/bash	Bourne-Again shell script executable (binary data)
76267843Sdelphij!:mime	text/x-shellscript
77226048Sobrien0	string/wt	#!\ /usr/local/bin/bash	Bourne-Again shell script text executable
78226048Sobrien!:mime	text/x-shellscript
79267843Sdelphij0	string/wb	#!\ /usr/local/bin/bash	Bourne-Again shell script executable (binary data)
80267843Sdelphij!:mime	text/x-shellscript
81284778Sdelphij0	string/wt	#!\ /usr/bin/env\ bash	Bourne-Again shell script text executable
82284778Sdelphij!:mime	text/x-shellscript
8368349Sobrien
84103373Sobrien# PHP scripts
85103373Sobrien# Ulf Harnhammar <ulfh@update.uu.se>
86186690Sobrien0	search/1/c	=<?php			PHP script text
87267843Sdelphij!:strength + 10
88186690Sobrien!:mime	text/x-php
89186690Sobrien0	search/1	=<?\n			PHP script text
90186690Sobrien!:mime	text/x-php
91186690Sobrien0	search/1	=<?\r			PHP script text
92186690Sobrien!:mime	text/x-php
93226048Sobrien0	search/1/w	#!\ /usr/local/bin/php	PHP script text executable
94267843Sdelphij!:strength + 10
95186690Sobrien!:mime	text/x-php
96226048Sobrien0	search/1/w	#!\ /usr/bin/php	PHP script text executable
97267843Sdelphij!:strength + 10
98186690Sobrien!:mime	text/x-php
99226048Sobrien# Smarty compiled template, http://www.smarty.net/
100267843Sdelphij# Elan Ruusamae <glen@delfi.ee>
101226048Sobrien0	string	=<?php\ /*\ Smarty\ version	Smarty compiled template
102226048Sobrien>24	regex	[0-9.]+				\b, version %s
103226048Sobrien!:mime	text/x-php
104103373Sobrien
105103373Sobrien0	string		Zend\x00		PHP script Zend Optimizer data
106169942Sobrien
107226048Sobrien0	string/t	$!			DCL command file
108226048Sobrien
109226048Sobrien# Type: Pdmenu
110226048Sobrien# URL:  http://packages.debian.org/pdmenu
111226048Sobrien# From: Edward Betts <edward@debian.org>
112226048Sobrien0	string		#!/usr/bin/pdmenu	Pdmenu configuration file text
113