1 2#------------------------------------------------------------------------------ 3# $File: commands,v 1.36 2010/01/24 18:41:11 christos Exp $ 4# commands: file(1) magic for various shells and interpreters 5# 6#0 string : shell archive or script for antique kernel text 70 string/w #!\ /bin/sh POSIX shell script text executable 8!:mime text/x-shellscript 90 string/w #!\ /bin/csh C shell script text executable 10!:mime text/x-shellscript 11# korn shell magic, sent by George Wu, gwu@clyde.att.com 120 string/w #!\ /bin/ksh Korn shell script text executable 13!:mime text/x-shellscript 140 string/w #!\ /bin/tcsh Tenex C shell script text executable 15!:mime text/x-shellscript 160 string/w #!\ /usr/local/tcsh Tenex C shell script text executable 17!:mime text/x-shellscript 180 string/w #!\ /usr/local/bin/tcsh Tenex C shell script text executable 19!:mime text/x-shellscript 20 21# 22# zsh/ash/ae/nawk/gawk magic from cameron@cs.unsw.oz.au (Cameron Simpson) 230 string/w #!\ /bin/zsh Paul Falstad's zsh script text executable 24!:mime text/x-shellscript 250 string/w #!\ /usr/bin/zsh Paul Falstad's zsh script text executable 26!:mime text/x-shellscript 270 string/w #!\ /usr/local/bin/zsh Paul Falstad's zsh script text executable 28!:mime text/x-shellscript 290 string/w #!\ /usr/local/bin/ash Neil Brown's ash script text executable 30!:mime text/x-shellscript 310 string/w #!\ /usr/local/bin/ae Neil Brown's ae script text executable 32!:mime text/x-shellscript 330 string/w #!\ /bin/nawk new awk script text executable 34!:mime text/x-nawk 350 string/w #!\ /usr/bin/nawk new awk script text executable 36!:mime text/x-nawk 370 string/w #!\ /usr/local/bin/nawk new awk script text executable 38!:mime text/x-nawk 390 string/w #!\ /bin/gawk GNU awk script text executable 40!:mime text/x-gawk 410 string/w #!\ /usr/bin/gawk GNU awk script text executable 42!:mime text/x-gawk 430 string/w #!\ /usr/local/bin/gawk GNU awk script text executable 44!:mime text/x-gawk 45# 460 string/w #!\ /bin/awk awk script text executable 47!:mime text/x-awk 480 string/w #!\ /usr/bin/awk awk script text executable 49!:mime text/x-awk 50# update to distinguish from *.vcf files 51# this is broken because postscript has /EBEGIN{ for example. 52#0 search/Ww BEGIN { awk script text 53 54# AT&T Bell Labs' Plan 9 shell 550 string/w #!\ /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/w #!\ /bin/bash Bourne-Again shell script text executable 59!:mime text/x-shellscript 600 string/w #!\ /usr/local/bin/bash Bourne-Again shell script text executable 61!:mime text/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 72!:mime text/x-php 730 search/1 =<?\n PHP script text 74!:mime text/x-php 750 search/1 =<?\r PHP script text 76!:mime text/x-php 770 search/1/w #!\ /usr/local/bin/php PHP script text executable 78!:mime text/x-php 790 search/1/w #!\ /usr/bin/php PHP script text executable 80!:mime text/x-php 81 820 string Zend\x00 PHP script Zend Optimizer data 83 840 string $! DCL command file 85