1# $MirOS: src/usr.bin/file/magdir/commands,v 1.5 2007/04/15 12:50:27 tg Exp $
2# $OpenBSD: commands,v 1.3 2004/06/03 03:14:19 tedu Exp $
3
4#------------------------------------------------------------------------------
5# commands:  file(1) magic for various shells and interpreters
6#
70	string		:\ shell archive or commands for antique kernel text
80	string		#!/bin/sh		Bourne shell script text
90	string		#!\ /bin/sh		Bourne shell script text
100	string		#!/bin/csh		C shell script text
110	string		#!\ /bin/csh		C shell script text
12# korn shell magic, sent by George Wu, gwu@clyde.att.com
130	string		#!/bin/ksh		Korn shell script text
140	string		#!\ /bin/ksh		Korn shell script text
15#
160	string		#!/bin/mksh		MirBSD Korn shell script text
170	string		#!\ /bin/mksh		MirBSD Korn shell script text
180	string		#!/usr/bin/env\ mksh	MirBSD Korn shell script text
190	string		#!\ /usr/bin/env\ mksh	MirBSD Korn shell script text
200	string	 	#!/bin/tcsh		Tenex C shell script text
210	string	 	#!\ /bin/tcsh		Tenex C shell script text
220	string		#!/usr/local/tcsh	Tenex C shell script text
230	string	 	#!\ /usr/local/tcsh	Tenex C shell script text
240	string		#!/usr/local/bin/tcsh	Tenex C shell script text
250	string		#!\ /usr/local/bin/tcsh	Tenex C shell script text
26#
27# zsh/ash/ae/nawk/gawk magic from cameron@cs.unsw.oz.au (Cameron Simpson)
280	string		#!/usr/local/bin/zsh	Paul Falstad's zsh
290	string		#!\ /usr/local/bin/zsh	Paul Falstad's zsh
300	string		#!/usr/local/bin/ash	Neil Brown's ash
310	string		#!\ /usr/local/bin/ash	Neil Brown's ash
320	string		#!/usr/local/bin/ae	Neil Brown's ae
330	string		#!\ /usr/local/bin/ae	Neil Brown's ae
340	string		#!/bin/nawk		new awk script text
350	string		#!\ /bin/nawk		new awk script text
360	string		#!/usr/bin/nawk		new awk script text
370	string		#!\ /usr/bin/nawk	new awk script text
380	string		#!/usr/local/bin/nawk	new awk script text
390	string		#!\ /usr/local/bin/nawk	new awk script text
400	string		#!/bin/gawk		GNU awk script text
410	string		#!\ /bin/gawk		GNU awk script text
420	string		#!/usr/bin/gawk		GNU awk script text
430	string		#!\ /usr/bin/gawk	GNU awk script text
440	string		#!/usr/local/bin/gawk	GNU awk script text
450	string		#!\ /usr/local/bin/gawk	GNU awk script text
46#
470	string		#!/bin/awk		awk commands text
480	string		#!\ /bin/awk		awk commands text
490	string		#!/usr/bin/awk		awk commands text
500	string		#!\ /usr/bin/awk	awk commands text
510	string		BEGIN			awk commands text
52
53# For Larry Wall's perl language.  The ``eval'' line recognizes an
54# outrageously clever hack for USG systems.
55#				Keith Waclena <keith@cerberus.uchicago.edu>
560	string		#!/bin/perl			perl commands text
570	string		#!\ /bin/perl			perl commands text
580	string		eval\ "exec\ /bin/perl		perl commands text
590	string		#!/usr/bin/perl			perl commands text
600	string		#!\ /usr/bin/perl		perl commands text
610	string		eval\ "exec\ /usr/bin/perl	perl commands text
620	string		#!/usr/local/bin/perl		perl commands text
630	string		#!\ /usr/local/bin/perl		perl commands text
640	string		#!/usr/bin/env\ perl		perl commands text
650	string		#!\ /usr/bin/env\ perl		perl commands text
660	string		eval\ "exec\ /usr/local/bin/perl	perl commands text
67
68# AT&T Bell Labs' Plan 9 shell
690	string		#!/bin/rc	Plan 9 rc shell script text
700	string		#!\ /bin/rc	Plan 9 rc shell script text
71
72# bash shell magic, from Peter Tobias (tobias@server.et-inf.fho-emden.de)
730	string		#!/bin/bash	Bourne-Again shell script text
740	string		#!\ /bin/bash	Bourne-Again shell script text
750	string		#!/usr/local/bin/bash	Bourne-Again shell script text
760	string		#!\ /usr/local/bin/bash	Bourne-Again shell script text
77
78# generic shell magic
790	string		#!\ /			a
80>3	string		>\0			%s script text
810	string		#!/			a
82>2	string		>\0			%s script text
830	string		#!\ 			commands text
84>3	string		>\0			for %s
85
86# UTF-8 Byte Order Mark plus shell magic
870	string		#!/bin/mksh		MirBSD Korn shell script text, with BOM
880	string		#!\ /bin/mksh		MirBSD Korn shell script text, with BOM
890	string		#!/usr/bin/env\ mksh	MirBSD Korn shell script text, with BOM
900	string		#!\ /usr/bin/env\ mksh	MirBSD Korn shell script text, with BOM
910	string		#!/bin/perl			perl commands text, with BOM
920	string		#!\ /bin/perl			perl commands text, with BOM
930	string		eval\ "exec\ /bin/perl		perl commands text, with BOM
940	string		#!/usr/bin/perl			perl commands text, with BOM
950	string		#!\ /usr/bin/perl		perl commands text, with BOM
960	string		eval\ "exec\ /usr/bin/perl	perl commands text, with BOM
970	string		#!/usr/local/bin/perl		perl commands text, with BOM
980	string		#!\ /usr/local/bin/perl		perl commands text, with BOM
990	string		#!/usr/bin/env\ perl		perl commands text, with BOM
1000	string		#!\ /usr/bin/env\ perl		perl commands text, with BOM
101