1*0ee74395Schl# $OpenBSD: commands,v 1.5 2009/04/24 18:54:34 chl Exp $ 2df930be7Sderaadt 3df930be7Sderaadt#------------------------------------------------------------------------------ 4df930be7Sderaadt# commands: file(1) magic for various shells and interpreters 5df930be7Sderaadt# 6*0ee74395Schl#0 string : shell archive or script for antique kernel text 7380b5c7dSchl0 string/b #!\ /bin/sh Bourne shell script text executable 8*0ee74395Schl!:mime application/x-shellscript 9380b5c7dSchl0 string/b #!\ /bin/csh C shell script text executable 10*0ee74395Schl!:mime application/x-shellscript 11df930be7Sderaadt# korn shell magic, sent by George Wu, gwu@clyde.att.com 12380b5c7dSchl0 string/b #!\ /bin/ksh Korn shell script text executable 13*0ee74395Schl!:mime application/x-shellscript 14380b5c7dSchl0 string/b #!\ /bin/tcsh Tenex C shell script text executable 15*0ee74395Schl!:mime application/x-shellscript 16380b5c7dSchl0 string/b #!\ /usr/local/tcsh Tenex C shell script text executable 17*0ee74395Schl!:mime application/x-shellscript 18380b5c7dSchl0 string/b #!\ /usr/local/bin/tcsh Tenex C shell script text executable 19*0ee74395Schl!:mime application/x-shellscript 20380b5c7dSchl 21df930be7Sderaadt# 22df930be7Sderaadt# zsh/ash/ae/nawk/gawk magic from cameron@cs.unsw.oz.au (Cameron Simpson) 23380b5c7dSchl0 string/b #!\ /bin/zsh Paul Falstad's zsh script text executable 24*0ee74395Schl!:mime application/x-shellscript 25380b5c7dSchl0 string/b #!\ /usr/bin/zsh Paul Falstad's zsh script text executable 26*0ee74395Schl!:mime application/x-shellscript 27380b5c7dSchl0 string/b #!\ /usr/local/bin/zsh Paul Falstad's zsh script text executable 28*0ee74395Schl!:mime application/x-shellscript 29380b5c7dSchl0 string/b #!\ /usr/local/bin/ash Neil Brown's ash script text executable 30*0ee74395Schl!:mime application/x-shellscript 31380b5c7dSchl0 string/b #!\ /usr/local/bin/ae Neil Brown's ae script text executable 32*0ee74395Schl!:mime application/x-shellscript 33380b5c7dSchl0 string/b #!\ /bin/nawk new awk script text executable 34*0ee74395Schl!:mime application/x-nawk 35380b5c7dSchl0 string/b #!\ /usr/bin/nawk new awk script text executable 36*0ee74395Schl!:mime application/x-nawk 37380b5c7dSchl0 string/b #!\ /usr/local/bin/nawk new awk script text executable 38*0ee74395Schl!:mime application/x-nawk 39380b5c7dSchl0 string/b #!\ /bin/gawk GNU awk script text executable 40*0ee74395Schl!:mime application/x-gawk 41380b5c7dSchl0 string/b #!\ /usr/bin/gawk GNU awk script text executable 42*0ee74395Schl!:mime application/x-gawk 43380b5c7dSchl0 string/b #!\ /usr/local/bin/gawk GNU awk script text executable 44*0ee74395Schl!:mime application/x-gawk 45df930be7Sderaadt# 46380b5c7dSchl0 string/b #!\ /bin/awk awk script text executable 47*0ee74395Schl!:mime application/x-awk 48380b5c7dSchl0 string/b #!\ /usr/bin/awk awk script text executable 49*0ee74395Schl!:mime application/x-awk 50380b5c7dSchl# update to distinguish from *.vcf files 51*0ee74395Schl# this is broken because postscript has /EBEGIN{ for example. 52*0ee74395Schl#0 search/Bb BEGIN { awk script text 53df930be7Sderaadt 54df930be7Sderaadt# AT&T Bell Labs' Plan 9 shell 55380b5c7dSchl0 string/b #!\ /bin/rc Plan 9 rc shell script text executable 56df930be7Sderaadt 57df930be7Sderaadt# bash shell magic, from Peter Tobias (tobias@server.et-inf.fho-emden.de) 58380b5c7dSchl0 string/b #!\ /bin/bash Bourne-Again shell script text executable 59*0ee74395Schl!:mime application/x-shellscript 60380b5c7dSchl0 string/b #!\ /usr/local/bin/bash Bourne-Again shell script text executable 61*0ee74395Schl!:mime application/x-shellscript 62df930be7Sderaadt 63380b5c7dSchl# using env 64380b5c7dSchl0 string #!/usr/bin/env a 65380b5c7dSchl>15 string >\0 %s script text executable 66380b5c7dSchl0 string #!\ /usr/bin/env a 67380b5c7dSchl>16 string >\0 %s script text executable 68380b5c7dSchl 69380b5c7dSchl# PHP scripts 70380b5c7dSchl# Ulf Harnhammar <ulfh@update.uu.se> 71*0ee74395Schl0 search/1/c =<?php PHP script text 72*0ee74395Schl0 search/1 =<?\n PHP script text 73*0ee74395Schl0 search/1 =<?\r PHP script text 74*0ee74395Schl0 search/1/b #!\ /usr/local/bin/php PHP script text executable 75*0ee74395Schl0 search/1/b #!\ /usr/bin/php PHP script text executable 76380b5c7dSchl 77380b5c7dSchl0 string Zend\x00 PHP script Zend Optimizer data 78380b5c7dSchl 79380b5c7dSchl0 string $! DCL command file 80