xref: /freebsd/contrib/file/magic/Magdir/commands (revision b6cee71de37d56e36dbc118e2d9b03e7cece5709)
1*b6cee71dSXin LI
2*b6cee71dSXin LI#------------------------------------------------------------------------------
3*b6cee71dSXin LI# $File: commands,v 1.50 2014/05/30 16:48:44 christos Exp $
4*b6cee71dSXin LI# commands:  file(1) magic for various shells and interpreters
5*b6cee71dSXin LI#
6*b6cee71dSXin LI#0	string/w	:			shell archive or script for antique kernel text
7*b6cee71dSXin LI0	string/wt	#!\ /bin/sh		POSIX shell script text executable
8*b6cee71dSXin LI!:mime	text/x-shellscript
9*b6cee71dSXin LI0	string/wb	#!\ /bin/sh		POSIX shell script executable (binary data)
10*b6cee71dSXin LI!:mime	text/x-shellscript
11*b6cee71dSXin LI
12*b6cee71dSXin LI0	string/wt	#!\ /bin/csh		C shell script text executable
13*b6cee71dSXin LI!:mime	text/x-shellscript
14*b6cee71dSXin LI
15*b6cee71dSXin LI# korn shell magic, sent by George Wu, gwu@clyde.att.com
16*b6cee71dSXin LI0	string/wt	#!\ /bin/ksh		Korn shell script text executable
17*b6cee71dSXin LI!:mime	text/x-shellscript
18*b6cee71dSXin LI0	string/wb	#!\ /bin/ksh		Korn shell script executable (binary data)
19*b6cee71dSXin LI!:mime	text/x-shellscript
20*b6cee71dSXin LI
21*b6cee71dSXin LI0	string/wt 	#!\ /bin/tcsh		Tenex C shell script text executable
22*b6cee71dSXin LI!:mime	text/x-shellscript
23*b6cee71dSXin LI0	string/wt	#!\ /usr/bin/tcsh	Tenex C shell script text executable
24*b6cee71dSXin LI!:mime	text/x-shellscript
25*b6cee71dSXin LI0	string/wt 	#!\ /usr/local/tcsh	Tenex C shell script text executable
26*b6cee71dSXin LI!:mime	text/x-shellscript
27*b6cee71dSXin LI0	string/wt	#!\ /usr/local/bin/tcsh	Tenex C shell script text executable
28*b6cee71dSXin LI!:mime	text/x-shellscript
29*b6cee71dSXin LI
30*b6cee71dSXin LI#
31*b6cee71dSXin LI# zsh/ash/ae/nawk/gawk magic from cameron@cs.unsw.oz.au (Cameron Simpson)
32*b6cee71dSXin LI0	string/wt	#!\ /bin/zsh		Paul Falstad's zsh script text executable
33*b6cee71dSXin LI!:mime	text/x-shellscript
34*b6cee71dSXin LI0	string/wt	#!\ /usr/bin/zsh	Paul Falstad's zsh script text executable
35*b6cee71dSXin LI!:mime	text/x-shellscript
36*b6cee71dSXin LI0	string/wt	#!\ /usr/local/bin/zsh	Paul Falstad's zsh script text executable
37*b6cee71dSXin LI!:mime	text/x-shellscript
38*b6cee71dSXin LI0	string/wt	#!\ /usr/local/bin/ash	Neil Brown's ash script text executable
39*b6cee71dSXin LI!:mime	text/x-shellscript
40*b6cee71dSXin LI0	string/wt	#!\ /usr/local/bin/ae	Neil Brown's ae script text executable
41*b6cee71dSXin LI!:mime	text/x-shellscript
42*b6cee71dSXin LI0	string/wt	#!\ /bin/nawk		new awk script text executable
43*b6cee71dSXin LI!:mime	text/x-nawk
44*b6cee71dSXin LI0	string/wt	#!\ /usr/bin/nawk	new awk script text executable
45*b6cee71dSXin LI!:mime	text/x-nawk
46*b6cee71dSXin LI0	string/wt	#!\ /usr/local/bin/nawk	new awk script text executable
47*b6cee71dSXin LI!:mime	text/x-nawk
48*b6cee71dSXin LI0	string/wt	#!\ /bin/gawk		GNU awk script text executable
49*b6cee71dSXin LI!:mime	text/x-gawk
50*b6cee71dSXin LI0	string/wt	#!\ /usr/bin/gawk	GNU awk script text executable
51*b6cee71dSXin LI!:mime	text/x-gawk
52*b6cee71dSXin LI0	string/wt	#!\ /usr/local/bin/gawk	GNU awk script text executable
53*b6cee71dSXin LI!:mime	text/x-gawk
54*b6cee71dSXin LI#
55*b6cee71dSXin LI0	string/wt	#!\ /bin/awk		awk script text executable
56*b6cee71dSXin LI!:mime	text/x-awk
57*b6cee71dSXin LI0	string/wt	#!\ /usr/bin/awk	awk script text executable
58*b6cee71dSXin LI!:mime	text/x-awk
59*b6cee71dSXin LI0	regex/4096	=^\\s{0,100}BEGIN\\s{0,100}[{]	awk script text
60*b6cee71dSXin LI
61*b6cee71dSXin LI# AT&T Bell Labs' Plan 9 shell
62*b6cee71dSXin LI0	string/wt	#!\ /bin/rc	Plan 9 rc shell script text executable
63*b6cee71dSXin LI
64*b6cee71dSXin LI# bash shell magic, from Peter Tobias (tobias@server.et-inf.fho-emden.de)
65*b6cee71dSXin LI0	string/wt	#!\ /bin/bash	Bourne-Again shell script text executable
66*b6cee71dSXin LI!:mime	text/x-shellscript
67*b6cee71dSXin LI0	string/wb	#!\ /bin/bash	Bourne-Again shell script executable (binary data)
68*b6cee71dSXin LI!:mime	text/x-shellscript
69*b6cee71dSXin LI0	string/wt	#!\ /usr/bin/bash	Bourne-Again shell script text executable
70*b6cee71dSXin LI!:mime	text/x-shellscript
71*b6cee71dSXin LI0	string/wb	#!\ /usr/bin/bash	Bourne-Again shell script executable (binary data)
72*b6cee71dSXin LI!:mime	text/x-shellscript
73*b6cee71dSXin LI0	string/wt	#!\ /usr/local/bash	Bourne-Again shell script text executable
74*b6cee71dSXin LI!:mime	text/x-shellscript
75*b6cee71dSXin LI0	string/wb	#!\ /usr/local/bash	Bourne-Again shell script executable (binary data)
76*b6cee71dSXin LI!:mime	text/x-shellscript
77*b6cee71dSXin LI0	string/wt	#!\ /usr/local/bin/bash	Bourne-Again shell script text executable
78*b6cee71dSXin LI!:mime	text/x-shellscript
79*b6cee71dSXin LI0	string/wb	#!\ /usr/local/bin/bash	Bourne-Again shell script executable (binary data)
80*b6cee71dSXin LI!:mime	text/x-shellscript
81*b6cee71dSXin LI
82*b6cee71dSXin LI# PHP scripts
83*b6cee71dSXin LI# Ulf Harnhammar <ulfh@update.uu.se>
84*b6cee71dSXin LI0	search/1/c	=<?php			PHP script text
85*b6cee71dSXin LI!:strength + 10
86*b6cee71dSXin LI!:mime	text/x-php
87*b6cee71dSXin LI0	search/1	=<?\n			PHP script text
88*b6cee71dSXin LI!:mime	text/x-php
89*b6cee71dSXin LI0	search/1	=<?\r			PHP script text
90*b6cee71dSXin LI!:mime	text/x-php
91*b6cee71dSXin LI0	search/1/w	#!\ /usr/local/bin/php	PHP script text executable
92*b6cee71dSXin LI!:strength + 10
93*b6cee71dSXin LI!:mime	text/x-php
94*b6cee71dSXin LI0	search/1/w	#!\ /usr/bin/php	PHP script text executable
95*b6cee71dSXin LI!:strength + 10
96*b6cee71dSXin LI!:mime	text/x-php
97*b6cee71dSXin LI# Smarty compiled template, http://www.smarty.net/
98*b6cee71dSXin LI# Elan Ruusamae <glen@delfi.ee>
99*b6cee71dSXin LI0	string	=<?php\ /*\ Smarty\ version	Smarty compiled template
100*b6cee71dSXin LI>24	regex	[0-9.]+				\b, version %s
101*b6cee71dSXin LI!:mime	text/x-php
102*b6cee71dSXin LI
103*b6cee71dSXin LI0	string		Zend\x00		PHP script Zend Optimizer data
104*b6cee71dSXin LI
105*b6cee71dSXin LI0	string/t	$!			DCL command file
106*b6cee71dSXin LI
107*b6cee71dSXin LI# Type: Pdmenu
108*b6cee71dSXin LI# URL:  http://packages.debian.org/pdmenu
109*b6cee71dSXin LI# From: Edward Betts <edward@debian.org>
110*b6cee71dSXin LI0	string		#!/usr/bin/pdmenu	Pdmenu configuration file text
111