commands revision 226048
168349Sobrien 268349Sobrien#------------------------------------------------------------------------------ 3226048Sobrien# $File: commands,v 1.41 2011/05/02 12:36:41 christos Exp $ 468349Sobrien# commands: file(1) magic for various shells and interpreters 568349Sobrien# 6226048Sobrien#0 string/w : shell archive or script for antique kernel text 7226048Sobrien0 string/wt #!\ /bin/sh POSIX shell script text executable 8186690Sobrien!:mime text/x-shellscript 9226048Sobrien0 string/wt #!\ /bin/csh C shell script text executable 10186690Sobrien!:mime text/x-shellscript 1168349Sobrien# korn shell magic, sent by George Wu, gwu@clyde.att.com 12226048Sobrien0 string/wt #!\ /bin/ksh Korn shell script text executable 13186690Sobrien!:mime text/x-shellscript 14226048Sobrien0 string/wt #!\ /bin/tcsh Tenex C shell script text executable 15186690Sobrien!:mime text/x-shellscript 16226048Sobrien0 string/wt #!\ /usr/bin/tcsh Tenex C shell script text executable 17186690Sobrien!:mime text/x-shellscript 18226048Sobrien0 string/wt #!\ /usr/local/tcsh Tenex C shell script text executable 19186690Sobrien!:mime text/x-shellscript 20226048Sobrien0 string/wt #!\ /usr/local/bin/tcsh Tenex C shell script text executable 21226048Sobrien!:mime text/x-shellscript 2268349Sobrien 2368349Sobrien# 2468349Sobrien# zsh/ash/ae/nawk/gawk magic from cameron@cs.unsw.oz.au (Cameron Simpson) 25226048Sobrien0 string/wt #!\ /bin/zsh Paul Falstad's zsh script text executable 26186690Sobrien!:mime text/x-shellscript 27226048Sobrien0 string/wt #!\ /usr/bin/zsh Paul Falstad's zsh script text executable 28186690Sobrien!:mime text/x-shellscript 29226048Sobrien0 string/wt #!\ /usr/local/bin/zsh Paul Falstad's zsh script text executable 30186690Sobrien!:mime text/x-shellscript 31226048Sobrien0 string/wt #!\ /usr/local/bin/ash Neil Brown's ash script text executable 32186690Sobrien!:mime text/x-shellscript 33226048Sobrien0 string/wt #!\ /usr/local/bin/ae Neil Brown's ae script text executable 34186690Sobrien!:mime text/x-shellscript 35226048Sobrien0 string/wt #!\ /bin/nawk new awk script text executable 36186690Sobrien!:mime text/x-nawk 37226048Sobrien0 string/wt #!\ /usr/bin/nawk new awk script text executable 38186690Sobrien!:mime text/x-nawk 39226048Sobrien0 string/wt #!\ /usr/local/bin/nawk new awk script text executable 40186690Sobrien!:mime text/x-nawk 41226048Sobrien0 string/wt #!\ /bin/gawk GNU awk script text executable 42186690Sobrien!:mime text/x-gawk 43226048Sobrien0 string/wt #!\ /usr/bin/gawk GNU awk script text executable 44186690Sobrien!:mime text/x-gawk 45226048Sobrien0 string/wt #!\ /usr/local/bin/gawk GNU awk script text executable 46186690Sobrien!:mime text/x-gawk 4768349Sobrien# 48226048Sobrien0 string/wt #!\ /bin/awk awk script text executable 49186690Sobrien!:mime text/x-awk 50226048Sobrien0 string/wt #!\ /usr/bin/awk awk script text executable 51186690Sobrien!:mime text/x-awk 52226048Sobrien0 regex =^\\s*BEGIN\\s*[{] awk script text 5368349Sobrien 5468349Sobrien# AT&T Bell Labs' Plan 9 shell 55226048Sobrien0 string/wt #!\ /bin/rc Plan 9 rc shell script text executable 5668349Sobrien 5768349Sobrien# bash shell magic, from Peter Tobias (tobias@server.et-inf.fho-emden.de) 58226048Sobrien0 string/wt #!\ /bin/bash Bourne-Again shell script text executable 59186690Sobrien!:mime text/x-shellscript 60226048Sobrien0 string/wt #!\ /usr/bin/bash Bourne-Again shell script text executable 61186690Sobrien!:mime text/x-shellscript 62226048Sobrien0 string/wt #!\ /usr/local/bash Bourne-Again shell script text executable 63226048Sobrien!:mime text/x-shellscript 64226048Sobrien0 string/wt #!\ /usr/local/bin/bash Bourne-Again shell script text executable 65226048Sobrien!:mime text/x-shellscript 6668349Sobrien 6768349Sobrien# using env 68226048Sobrien0 string/t #!/usr/bin/env a 69226048Sobrien>15 string/t >\0 %s script text executable 70226048Sobrien0 string/t #!\ /usr/bin/env a 71226048Sobrien>16 string/t >\0 %s script text executable 7268349Sobrien 73103373Sobrien# PHP scripts 74103373Sobrien# Ulf Harnhammar <ulfh@update.uu.se> 75186690Sobrien0 search/1/c =<?php PHP script text 76186690Sobrien!:mime text/x-php 77186690Sobrien0 search/1 =<?\n PHP script text 78186690Sobrien!:mime text/x-php 79186690Sobrien0 search/1 =<?\r PHP script text 80186690Sobrien!:mime text/x-php 81226048Sobrien0 search/1/w #!\ /usr/local/bin/php PHP script text executable 82186690Sobrien!:mime text/x-php 83226048Sobrien0 search/1/w #!\ /usr/bin/php PHP script text executable 84186690Sobrien!:mime text/x-php 85226048Sobrien# Smarty compiled template, http://www.smarty.net/ 86226048Sobrien# Elan Ruusam��e <glen@delfi.ee> 87226048Sobrien0 string =<?php\ /*\ Smarty\ version Smarty compiled template 88226048Sobrien>24 regex [0-9.]+ \b, version %s 89226048Sobrien!:mime text/x-php 90103373Sobrien 91103373Sobrien0 string Zend\x00 PHP script Zend Optimizer data 92169942Sobrien 93226048Sobrien0 string/t $! DCL command file 94226048Sobrien 95226048Sobrien# Type: Pdmenu 96226048Sobrien# URL: http://packages.debian.org/pdmenu 97226048Sobrien# From: Edward Betts <edward@debian.org> 98226048Sobrien0 string #!/usr/bin/pdmenu Pdmenu configuration file text 99