commands revision 267843
1219820Sjeff
2219820Sjeff#------------------------------------------------------------------------------
3219820Sjeff# $File: commands,v 1.50 2014/05/30 16:48:44 christos Exp $
4219820Sjeff# commands:  file(1) magic for various shells and interpreters
5271127Shselasky#
6219820Sjeff#0	string/w	:			shell archive or script for antique kernel text
7219820Sjeff0	string/wt	#!\ /bin/sh		POSIX shell script text executable
8219820Sjeff!:mime	text/x-shellscript
9219820Sjeff0	string/wb	#!\ /bin/sh		POSIX shell script executable (binary data)
10219820Sjeff!:mime	text/x-shellscript
11219820Sjeff
12219820Sjeff0	string/wt	#!\ /bin/csh		C shell script text executable
13219820Sjeff!:mime	text/x-shellscript
14219820Sjeff
15219820Sjeff# korn shell magic, sent by George Wu, gwu@clyde.att.com
16219820Sjeff0	string/wt	#!\ /bin/ksh		Korn shell script text executable
17219820Sjeff!:mime	text/x-shellscript
18219820Sjeff0	string/wb	#!\ /bin/ksh		Korn shell script executable (binary data)
19219820Sjeff!:mime	text/x-shellscript
20219820Sjeff
21219820Sjeff0	string/wt 	#!\ /bin/tcsh		Tenex C shell script text executable
22219820Sjeff!:mime	text/x-shellscript
23219820Sjeff0	string/wt	#!\ /usr/bin/tcsh	Tenex C shell script text executable
24219820Sjeff!:mime	text/x-shellscript
25219820Sjeff0	string/wt 	#!\ /usr/local/tcsh	Tenex C shell script text executable
26219820Sjeff!:mime	text/x-shellscript
27219820Sjeff0	string/wt	#!\ /usr/local/bin/tcsh	Tenex C shell script text executable
28219820Sjeff!:mime	text/x-shellscript
29219820Sjeff
30219820Sjeff#
31219820Sjeff# zsh/ash/ae/nawk/gawk magic from cameron@cs.unsw.oz.au (Cameron Simpson)
32282513Shselasky0	string/wt	#!\ /bin/zsh		Paul Falstad's zsh script text executable
33282513Shselasky!:mime	text/x-shellscript
34219820Sjeff0	string/wt	#!\ /usr/bin/zsh	Paul Falstad's zsh script text executable
35219820Sjeff!:mime	text/x-shellscript
36219820Sjeff0	string/wt	#!\ /usr/local/bin/zsh	Paul Falstad's zsh script text executable
37219820Sjeff!:mime	text/x-shellscript
38219820Sjeff0	string/wt	#!\ /usr/local/bin/ash	Neil Brown's ash script text executable
39219820Sjeff!:mime	text/x-shellscript
40219820Sjeff0	string/wt	#!\ /usr/local/bin/ae	Neil Brown's ae script text executable
41219820Sjeff!:mime	text/x-shellscript
42219820Sjeff0	string/wt	#!\ /bin/nawk		new awk script text executable
43219820Sjeff!:mime	text/x-nawk
44219820Sjeff0	string/wt	#!\ /usr/bin/nawk	new awk script text executable
45219820Sjeff!:mime	text/x-nawk
46219820Sjeff0	string/wt	#!\ /usr/local/bin/nawk	new awk script text executable
47219820Sjeff!:mime	text/x-nawk
48219820Sjeff0	string/wt	#!\ /bin/gawk		GNU awk script text executable
49219820Sjeff!:mime	text/x-gawk
50219820Sjeff0	string/wt	#!\ /usr/bin/gawk	GNU awk script text executable
51219820Sjeff!:mime	text/x-gawk
52219820Sjeff0	string/wt	#!\ /usr/local/bin/gawk	GNU awk script text executable
53219820Sjeff!:mime	text/x-gawk
54219820Sjeff#
55219820Sjeff0	string/wt	#!\ /bin/awk		awk script text executable
56219820Sjeff!:mime	text/x-awk
57219820Sjeff0	string/wt	#!\ /usr/bin/awk	awk script text executable
58219820Sjeff!:mime	text/x-awk
59219820Sjeff0	regex/4096	=^\\s{0,100}BEGIN\\s{0,100}[{]	awk script text
60219820Sjeff
61219820Sjeff# AT&T Bell Labs' Plan 9 shell
62219820Sjeff0	string/wt	#!\ /bin/rc	Plan 9 rc shell script text executable
63219820Sjeff
64219820Sjeff# bash shell magic, from Peter Tobias (tobias@server.et-inf.fho-emden.de)
65219820Sjeff0	string/wt	#!\ /bin/bash	Bourne-Again shell script text executable
66219820Sjeff!:mime	text/x-shellscript
67219820Sjeff0	string/wb	#!\ /bin/bash	Bourne-Again shell script executable (binary data)
68219820Sjeff!:mime	text/x-shellscript
69219820Sjeff0	string/wt	#!\ /usr/bin/bash	Bourne-Again shell script text executable
70219820Sjeff!:mime	text/x-shellscript
71219820Sjeff0	string/wb	#!\ /usr/bin/bash	Bourne-Again shell script executable (binary data)
72219820Sjeff!:mime	text/x-shellscript
73219820Sjeff0	string/wt	#!\ /usr/local/bash	Bourne-Again shell script text executable
74219820Sjeff!:mime	text/x-shellscript
75219820Sjeff0	string/wb	#!\ /usr/local/bash	Bourne-Again shell script executable (binary data)
76219820Sjeff!:mime	text/x-shellscript
77219820Sjeff0	string/wt	#!\ /usr/local/bin/bash	Bourne-Again shell script text executable
78219820Sjeff!:mime	text/x-shellscript
79251617Sjhb0	string/wb	#!\ /usr/local/bin/bash	Bourne-Again shell script executable (binary data)
80219820Sjeff!:mime	text/x-shellscript
81219820Sjeff
82219820Sjeff# PHP scripts
83219820Sjeff# Ulf Harnhammar <ulfh@update.uu.se>
84219820Sjeff0	search/1/c	=<?php			PHP script text
85219820Sjeff!:strength + 10
86219820Sjeff!:mime	text/x-php
87219820Sjeff0	search/1	=<?\n			PHP script text
88219820Sjeff!:mime	text/x-php
89219820Sjeff0	search/1	=<?\r			PHP script text
90219820Sjeff!:mime	text/x-php
91219820Sjeff0	search/1/w	#!\ /usr/local/bin/php	PHP script text executable
92219820Sjeff!:strength + 10
93219820Sjeff!:mime	text/x-php
94219820Sjeff0	search/1/w	#!\ /usr/bin/php	PHP script text executable
95219820Sjeff!:strength + 10
96219820Sjeff!:mime	text/x-php
97219820Sjeff# Smarty compiled template, http://www.smarty.net/
98219820Sjeff# Elan Ruusamae <glen@delfi.ee>
99219820Sjeff0	string	=<?php\ /*\ Smarty\ version	Smarty compiled template
100219820Sjeff>24	regex	[0-9.]+				\b, version %s
101219820Sjeff!:mime	text/x-php
102219820Sjeff
103219820Sjeff0	string		Zend\x00		PHP script Zend Optimizer data
104219820Sjeff
105219820Sjeff0	string/t	$!			DCL command file
106219820Sjeff
107219820Sjeff# Type: Pdmenu
108219820Sjeff# URL:  http://packages.debian.org/pdmenu
109219820Sjeff# From: Edward Betts <edward@debian.org>
110219820Sjeff0	string		#!/usr/bin/pdmenu	Pdmenu configuration file text
111219820Sjeff