1# $OpenBSD: commands,v 1.5 2009/04/24 18:54:34 chl Exp $ 2 3#------------------------------------------------------------------------------ 4# commands: file(1) magic for various shells and interpreters 5# 6#0 string : shell archive or script for antique kernel text 70 string/b #!\ /bin/sh Bourne shell script text executable 8!:mime application/x-shellscript 90 string/b #!\ /bin/csh C shell script text executable 10!:mime application/x-shellscript 11# korn shell magic, sent by George Wu, gwu@clyde.att.com 120 string/b #!\ /bin/ksh Korn shell script text executable 13!:mime application/x-shellscript 140 string/b #!\ /bin/tcsh Tenex C shell script text executable 15!:mime application/x-shellscript 160 string/b #!\ /usr/local/tcsh Tenex C shell script text executable 17!:mime application/x-shellscript 180 string/b #!\ /usr/local/bin/tcsh Tenex C shell script text executable 19!:mime application/x-shellscript 20 21# 22# zsh/ash/ae/nawk/gawk magic from cameron@cs.unsw.oz.au (Cameron Simpson) 230 string/b #!\ /bin/zsh Paul Falstad's zsh script text executable 24!:mime application/x-shellscript 250 string/b #!\ /usr/bin/zsh Paul Falstad's zsh script text executable 26!:mime application/x-shellscript 270 string/b #!\ /usr/local/bin/zsh Paul Falstad's zsh script text executable 28!:mime application/x-shellscript 290 string/b #!\ /usr/local/bin/ash Neil Brown's ash script text executable 30!:mime application/x-shellscript 310 string/b #!\ /usr/local/bin/ae Neil Brown's ae script text executable 32!:mime application/x-shellscript 330 string/b #!\ /bin/nawk new awk script text executable 34!:mime application/x-nawk 350 string/b #!\ /usr/bin/nawk new awk script text executable 36!:mime application/x-nawk 370 string/b #!\ /usr/local/bin/nawk new awk script text executable 38!:mime application/x-nawk 390 string/b #!\ /bin/gawk GNU awk script text executable 40!:mime application/x-gawk 410 string/b #!\ /usr/bin/gawk GNU awk script text executable 42!:mime application/x-gawk 430 string/b #!\ /usr/local/bin/gawk GNU awk script text executable 44!:mime application/x-gawk 45# 460 string/b #!\ /bin/awk awk script text executable 47!:mime application/x-awk 480 string/b #!\ /usr/bin/awk awk script text executable 49!:mime application/x-awk 50# update to distinguish from *.vcf files 51# this is broken because postscript has /EBEGIN{ for example. 52#0 search/Bb BEGIN { awk script text 53 54# AT&T Bell Labs' Plan 9 shell 550 string/b #!\ /bin/rc Plan 9 rc shell script text executable 56 57# bash shell magic, from Peter Tobias (tobias@server.et-inf.fho-emden.de) 580 string/b #!\ /bin/bash Bourne-Again shell script text executable 59!:mime application/x-shellscript 600 string/b #!\ /usr/local/bin/bash Bourne-Again shell script text executable 61!:mime application/x-shellscript 62 63# using env 640 string #!/usr/bin/env a 65>15 string >\0 %s script text executable 660 string #!\ /usr/bin/env a 67>16 string >\0 %s script text executable 68 69# PHP scripts 70# Ulf Harnhammar <ulfh@update.uu.se> 710 search/1/c =<?php PHP script text 720 search/1 =<?\n PHP script text 730 search/1 =<?\r PHP script text 740 search/1/b #!\ /usr/local/bin/php PHP script text executable 750 search/1/b #!\ /usr/bin/php PHP script text executable 76 770 string Zend\x00 PHP script Zend Optimizer data 78 790 string $! DCL command file 80