xref: /openbsd-src/usr.bin/file/magdir/commands (revision 2b0358df1d88d06ef4139321dd05bd5e05d91eaf)
1#	$OpenBSD: commands,v 1.4 2008/05/08 01:40:57 chl Exp $
2
3#------------------------------------------------------------------------------
4# commands:  file(1) magic for various shells and interpreters
5#
60	string		:			shell archive or script for antique kernel text
70	string/b	#!\ /bin/sh		Bourne shell script text executable
80	string/b	#!\ /bin/csh		C shell script text executable
9# korn shell magic, sent by George Wu, gwu@clyde.att.com
100	string/b	#!\ /bin/ksh		Korn shell script text executable
110	string/b 	#!\ /bin/tcsh		Tenex C shell script text executable
120	string/b 	#!\ /usr/local/tcsh	Tenex C shell script text executable
130	string/b	#!\ /usr/local/bin/tcsh	Tenex C shell script text executable
14
15#
16# zsh/ash/ae/nawk/gawk magic from cameron@cs.unsw.oz.au (Cameron Simpson)
170	string/b	#!\ /bin/zsh		Paul Falstad's zsh script text executable
180	string/b	#!\ /usr/bin/zsh	Paul Falstad's zsh script text executable
190	string/b	#!\ /usr/local/bin/zsh	Paul Falstad's zsh script text executable
200	string/b	#!\ /usr/local/bin/ash	Neil Brown's ash script text executable
210	string/b	#!\ /usr/local/bin/ae	Neil Brown's ae script text executable
220	string/b	#!\ /bin/nawk		new awk script text executable
230	string/b	#!\ /usr/bin/nawk	new awk script text executable
240	string/b	#!\ /usr/local/bin/nawk	new awk script text executable
250	string/b	#!\ /bin/gawk		GNU awk script text executable
260	string/b	#!\ /usr/bin/gawk	GNU awk script text executable
270	string/b	#!\ /usr/local/bin/gawk	GNU awk script text executable
28#
290	string/b	#!\ /bin/awk		awk script text executable
300	string/b	#!\ /usr/bin/awk	awk script text executable
31# update to distinguish from *.vcf files
320	regex		BEGIN[[:space:]]*[{]	awk script text
33
34# AT&T Bell Labs' Plan 9 shell
350	string/b	#!\ /bin/rc	Plan 9 rc shell script text executable
36
37# bash shell magic, from Peter Tobias (tobias@server.et-inf.fho-emden.de)
380	string/b	#!\ /bin/bash	Bourne-Again shell script text executable
390	string/b	#!\ /usr/local/bin/bash	Bourne-Again shell script text executable
40
41# using env
420	string		#!/usr/bin/env		a
43>15	string		>\0			%s script text executable
440	string		#!\ /usr/bin/env	a
45>16	string		>\0			%s script text executable
46
47# PHP scripts
48# Ulf Harnhammar <ulfh@update.uu.se>
490	string/c	=<?php			PHP script text
500	string		=<?\n			PHP script text
510	string		=<?\r			PHP script text
520	string/b	#!\ /usr/local/bin/php	PHP script text executable
530	string/b	#!\ /usr/bin/php	PHP script text executable
54
550	string		Zend\x00		PHP script Zend Optimizer data
56
570	string		$!			DCL command file
58