1 2#------------------------------------------------------------------------------ 3# $File: commands,v 1.42 2011/12/05 23:14:02 rrt Exp $ 4# commands: file(1) magic for various shells and interpreters 5# 6#0 string/w : shell archive or script for antique kernel text 70 string/wt #!\ /bin/sh POSIX shell script text executable 8!:mime text/x-shellscript 90 string/wt #!\ /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/wt #!\ /bin/ksh Korn shell script text executable 13!:mime text/x-shellscript 140 string/wt #!\ /bin/tcsh Tenex C shell script text executable 15!:mime text/x-shellscript 160 string/wt #!\ /usr/bin/tcsh Tenex C shell script text executable 17!:mime text/x-shellscript 180 string/wt #!\ /usr/local/tcsh Tenex C shell script text executable 19!:mime text/x-shellscript 200 string/wt #!\ /usr/local/bin/tcsh Tenex C shell script text executable 21!:mime text/x-shellscript 22 23# 24# zsh/ash/ae/nawk/gawk magic from cameron@cs.unsw.oz.au (Cameron Simpson) 250 string/wt #!\ /bin/zsh Paul Falstad's zsh script text executable 26!:mime text/x-shellscript 270 string/wt #!\ /usr/bin/zsh Paul Falstad's zsh script text executable 28!:mime text/x-shellscript 290 string/wt #!\ /usr/local/bin/zsh Paul Falstad's zsh script text executable 30!:mime text/x-shellscript 310 string/wt #!\ /usr/local/bin/ash Neil Brown's ash script text executable 32!:mime text/x-shellscript 330 string/wt #!\ /usr/local/bin/ae Neil Brown's ae script text executable 34!:mime text/x-shellscript 350 string/wt #!\ /bin/nawk new awk script text executable 36!:mime text/x-nawk 370 string/wt #!\ /usr/bin/nawk new awk script text executable 38!:mime text/x-nawk 390 string/wt #!\ /usr/local/bin/nawk new awk script text executable 40!:mime text/x-nawk 410 string/wt #!\ /bin/gawk GNU awk script text executable 42!:mime text/x-gawk 430 string/wt #!\ /usr/bin/gawk GNU awk script text executable 44!:mime text/x-gawk 450 string/wt #!\ /usr/local/bin/gawk GNU awk script text executable 46!:mime text/x-gawk 47# 480 string/wt #!\ /bin/awk awk script text executable 49!:mime text/x-awk 500 string/wt #!\ /usr/bin/awk awk script text executable 51!:mime text/x-awk 520 regex =^\\s*BEGIN\\s*[{] awk script text 53 54# AT&T Bell Labs' Plan 9 shell 550 string/wt #!\ /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/wt #!\ /bin/bash Bourne-Again shell script text executable 59!:mime text/x-shellscript 600 string/wt #!\ /usr/bin/bash Bourne-Again shell script text executable 61!:mime text/x-shellscript 620 string/wt #!\ /usr/local/bash Bourne-Again shell script text executable 63!:mime text/x-shellscript 640 string/wt #!\ /usr/local/bin/bash Bourne-Again shell script text executable 65!:mime text/x-shellscript 66 67# PHP scripts 68# Ulf Harnhammar <ulfh@update.uu.se> 690 search/1/c =<?php PHP script text 70!:mime text/x-php 710 search/1 =<?\n PHP script text 72!:mime text/x-php 730 search/1 =<?\r PHP script text 74!:mime text/x-php 750 search/1/w #!\ /usr/local/bin/php PHP script text executable 76!:mime text/x-php 770 search/1/w #!\ /usr/bin/php PHP script text executable 78!:mime text/x-php 79# Smarty compiled template, http://www.smarty.net/ 80# Elan Ruusamäe <glen@delfi.ee> 810 string =<?php\ /*\ Smarty\ version Smarty compiled template 82>24 regex [0-9.]+ \b, version %s 83!:mime text/x-php 84 850 string Zend\x00 PHP script Zend Optimizer data 86 870 string/t $! DCL command file 88 89# Type: Pdmenu 90# URL: http://packages.debian.org/pdmenu 91# From: Edward Betts <edward@debian.org> 920 string #!/usr/bin/pdmenu Pdmenu configuration file text 93