1 2#------------------------------------------------------------------------------ 3# commands: file(1) magic for various shells and interpreters 4# 5#0 string : shell archive or script for antique kernel text 60 string/b #!\ /bin/sh POSIX shell script text executable 7!:mime text/x-shellscript 80 string/b #!\ /bin/csh C shell script text executable 9!:mime text/x-shellscript 10# korn shell magic, sent by George Wu, gwu@clyde.att.com 110 string/b #!\ /bin/ksh Korn shell script text executable 12!:mime text/x-shellscript 130 string/b #!\ /bin/tcsh Tenex C shell script text executable 14!:mime text/x-shellscript 150 string/b #!\ /usr/local/tcsh Tenex C shell script text executable 16!:mime text/x-shellscript 170 string/b #!\ /usr/local/bin/tcsh Tenex C shell script text executable 18!:mime text/x-shellscript 19 20# 21# zsh/ash/ae/nawk/gawk magic from cameron@cs.unsw.oz.au (Cameron Simpson) 220 string/b #!\ /bin/zsh Paul Falstad's zsh script text executable 23!:mime text/x-shellscript 240 string/b #!\ /usr/bin/zsh Paul Falstad's zsh script text executable 25!:mime text/x-shellscript 260 string/b #!\ /usr/local/bin/zsh Paul Falstad's zsh script text executable 27!:mime text/x-shellscript 280 string/b #!\ /usr/local/bin/ash Neil Brown's ash script text executable 29!:mime text/x-shellscript 300 string/b #!\ /usr/local/bin/ae Neil Brown's ae script text executable 31!:mime text/x-shellscript 320 string/b #!\ /bin/nawk new awk script text executable 33!:mime text/x-nawk 340 string/b #!\ /usr/bin/nawk new awk script text executable 35!:mime text/x-nawk 360 string/b #!\ /usr/local/bin/nawk new awk script text executable 37!:mime text/x-nawk 380 string/b #!\ /bin/gawk GNU awk script text executable 39!:mime text/x-gawk 400 string/b #!\ /usr/bin/gawk GNU awk script text executable 41!:mime text/x-gawk 420 string/b #!\ /usr/local/bin/gawk GNU awk script text executable 43!:mime text/x-gawk 44# 450 string/b #!\ /bin/awk awk script text executable 46!:mime text/x-awk 470 string/b #!\ /usr/bin/awk awk script text executable 48!:mime text/x-awk 49# update to distinguish from *.vcf files 50# this is broken because postscript has /EBEGIN{ for example. 51#0 search/Bb BEGIN { awk script text 52 53# AT&T Bell Labs' Plan 9 shell 540 string/b #!\ /bin/rc Plan 9 rc shell script text executable 55 56# bash shell magic, from Peter Tobias (tobias@server.et-inf.fho-emden.de) 570 string/b #!\ /bin/bash Bourne-Again shell script text executable 58!:mime text/x-shellscript 590 string/b #!\ /usr/local/bin/bash Bourne-Again shell script text executable 60!:mime text/x-shellscript 61 62# using env 630 string #!/usr/bin/env a 64>15 string >\0 %s script text executable 650 string #!\ /usr/bin/env a 66>16 string >\0 %s script text executable 67 68# PHP scripts 69# Ulf Harnhammar <ulfh@update.uu.se> 700 search/1/c =<?php PHP script text 71!:mime text/x-php 720 search/1 =<?\n PHP script text 73!:mime text/x-php 740 search/1 =<?\r PHP script text 75!:mime text/x-php 760 search/1/b #!\ /usr/local/bin/php PHP script text executable 77!:mime text/x-php 780 search/1/b #!\ /usr/bin/php PHP script text executable 79!:mime text/x-php 80 810 string Zend\x00 PHP script Zend Optimizer data 82 830 string $! DCL command file 84