commands revision 267843
168349Sobrien
268349Sobrien#------------------------------------------------------------------------------
3298192Sdelphij# $File: commands,v 1.50 2014/05/30 16:48:44 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
59275698Sdelphij0	regex/4096	=^\\s{0,100}BEGIN\\s{0,100}[{]	awk 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
81284237Sdelphij
82284237Sdelphij# PHP scripts
8368349Sobrien# Ulf Harnhammar <ulfh@update.uu.se>
84103373Sobrien0	search/1/c	=<?php			PHP script text
85103373Sobrien!:strength + 10
86186690Sobrien!:mime	text/x-php
87267843Sdelphij0	search/1	=<?\n			PHP script text
88186690Sobrien!:mime	text/x-php
89186690Sobrien0	search/1	=<?\r			PHP script text
90186690Sobrien!:mime	text/x-php
91186690Sobrien0	search/1/w	#!\ /usr/local/bin/php	PHP script text executable
92186690Sobrien!:strength + 10
93226048Sobrien!:mime	text/x-php
94267843Sdelphij0	search/1/w	#!\ /usr/bin/php	PHP script text executable
95186690Sobrien!:strength + 10
96226048Sobrien!:mime	text/x-php
97267843Sdelphij# Smarty compiled template, http://www.smarty.net/
98186690Sobrien# Elan Ruusamae <glen@delfi.ee>
99226048Sobrien0	string	=<?php\ /*\ Smarty\ version	Smarty compiled template
100267843Sdelphij>24	regex	[0-9.]+				\b, version %s
101298192Sdelphij!:mime	text/x-php
102298192Sdelphij
103298192Sdelphij0	string		Zend\x00		PHP script Zend Optimizer data
104226048Sobrien
105226048Sobrien0	string/t	$!			DCL command file
106103373Sobrien
107103373Sobrien# Type: Pdmenu
108169942Sobrien# URL:  http://packages.debian.org/pdmenu
109226048Sobrien# From: Edward Betts <edward@debian.org>
110226048Sobrien0	string		#!/usr/bin/pdmenu	Pdmenu configuration file text
111226048Sobrien