xref: /openbsd/usr.bin/file/magdir/commands (revision df930be7)
1
2#------------------------------------------------------------------------------
3# commands:  file(1) magic for various shells and interpreters
4#
50	string		:\ shell archive or commands for antique kernel text
60	string		#!/bin/sh		Bourne Shell script text
70	string		#!\ /bin/sh		Bourne Shell script text
80	string		#!/bin/csh		C Shell script text
90	string		#!\ /bin/csh		C Shell script text
10# korn shell magic, sent by George Wu, gwu@clyde.att.com
110	string		#!/bin/ksh		Korn Shell script text
120	string		#!\ /bin/ksh		Korn Shell script text
130	string	 	#!/bin/tcsh		Tenex C Shell script text
140	string	 	#!\ /bin/tcsh		Tenex C Shell script text
150	string		#!/usr/local/tcsh	Tenex C Shell script text
160	string	 	#!\ /usr/local/tcsh	Tenex C Shell script text
170	string		#!/usr/local/bin/tcsh	Tenex C Shell script text
180	string		#!\ /usr/local/bin/tcsh	Tenex C Shell script text
19#
20# zsh/ash/ae/nawk/gawk magic from cameron@cs.unsw.oz.au (Cameron Simpson)
210	string		#!/usr/local/bin/zsh	- Paul Falstad's zsh
220	string		#!\ /usr/local/bin/zsh	- Paul Falstad's zsh
230	string		#!/usr/local/bin/ash	- NeilBrown's ash
240	string		#!\ /usr/local/bin/ash	- NeilBrown's ash
250	string		#!/usr/local/bin/ae	- NeilBrown's ae
260	string		#!\ /usr/local/bin/ae	- NeilBrown's ae
270	string		#!/bin/nawk		- New Awk script text
280	string		#!\ /bin/nawk		- New Awk script text
290	string		#!/usr/bin/nawk		- New Awk script text
300	string		#!\ /usr/bin/nawk	- New Awk script text
310	string		#!/usr/local/bin/nawk	- New Awk script text
320	string		#!\ /usr/local/bin/nawk	- New Awk script text
330	string		#!/bin/gawk		- GNU awk script text
340	string		#!\ /bin/gawk		- GNU awk script text
350	string		#!/usr/bin/gawk		- GNU awk script text
360	string		#!\ /usr/bin/gawk	- GNU awk script text
370	string		#!/usr/local/bin/gawk	- GNU awk script text
380	string		#!\ /usr/local/bin/gawk	- GNU awk script text
39#
400	string		#!/bin/awk		Awk Commands text
410	string		#!\ /bin/awk		Awk Commands text
420	string		#!/usr/bin/awk		Awk Commands text
430	string		#!\ /usr/bin/awk	Awk Commands text
44
45# For Larry Wall's perl language.  The ``eval'' line recognizes an
46# outrageously clever hack for USG systems.
47#				Keith Waclena <keith@cerberus.uchicago.edu>
480	string		#!/bin/perl			perl commands text
490	string		#!\ /bin/perl			perl commands text
500	string		eval\ "exec\ /bin/perl		perl commands text
510	string		#!/usr/bin/perl			perl commands text
520	string		#!\ /usr/bin/perl		perl commands text
530	string		eval\ "exec\ /usr/bin/perl	perl commands text
540	string		#!/usr/local/bin/perl		perl commands text
550	string		#!\ /usr/local/bin/perl		perl commands text
560	string		eval\ "exec\ /usr/local/bin/perl	perl commands text
57
58# AT&T Bell Labs' Plan 9 shell
590	string		#!/bin/rc	Plan 9 rc Shell script text
600	string		#!\ /bin/rc	Plan 9 rc Shell script text
61
62# bash shell magic, from Peter Tobias (tobias@server.et-inf.fho-emden.de)
630	string		#!/bin/bash	Bourne-Again Shell script text
640	string		#!\ /bin/bash	Bourne-Again Shell script text
650	string		#!/usr/local/bin/bash	Bourne-Again Shell script text
660	string		#!\ /usr/local/bin/bash	Bourne-Again Shell script text
67
68# generic shell magic
690	string		#!\ /			a
70>3	string		>\0			%s script text
710	string		#!/			a
72>2	string		>\0			%s script text
730	string		#!\ 			commands text
74>3	string		>\0			for %s
75