1b6cee71dSXin LI 2b6cee71dSXin LI#------------------------------------------------------------------------------ 3*48c779cdSXin LI# $File: commands,v 1.60 2019/04/19 00:42:27 christos Exp $ 4b6cee71dSXin LI# commands: file(1) magic for various shells and interpreters 5b6cee71dSXin LI# 6b6cee71dSXin LI#0 string/w : shell archive or script for antique kernel text 7b6cee71dSXin LI0 string/wt #!\ /bin/sh POSIX shell script text executable 8b6cee71dSXin LI!:mime text/x-shellscript 9b6cee71dSXin LI0 string/wb #!\ /bin/sh POSIX shell script executable (binary data) 10b6cee71dSXin LI!:mime text/x-shellscript 11b6cee71dSXin LI 12b6cee71dSXin LI0 string/wt #!\ /bin/csh C shell script text executable 13b6cee71dSXin LI!:mime text/x-shellscript 14b6cee71dSXin LI 15b6cee71dSXin LI# korn shell magic, sent by George Wu, gwu@clyde.att.com 16b6cee71dSXin LI0 string/wt #!\ /bin/ksh Korn shell script text executable 17b6cee71dSXin LI!:mime text/x-shellscript 18b6cee71dSXin LI0 string/wb #!\ /bin/ksh Korn shell script executable (binary data) 19b6cee71dSXin LI!:mime text/x-shellscript 20b6cee71dSXin LI 21b6cee71dSXin LI0 string/wt #!\ /bin/tcsh Tenex C shell script text executable 22b6cee71dSXin LI!:mime text/x-shellscript 23b6cee71dSXin LI0 string/wt #!\ /usr/bin/tcsh Tenex C shell script text executable 24b6cee71dSXin LI!:mime text/x-shellscript 25b6cee71dSXin LI0 string/wt #!\ /usr/local/tcsh Tenex C shell script text executable 26b6cee71dSXin LI!:mime text/x-shellscript 27b6cee71dSXin LI0 string/wt #!\ /usr/local/bin/tcsh Tenex C shell script text executable 28b6cee71dSXin LI!:mime text/x-shellscript 29b6cee71dSXin LI 30b6cee71dSXin LI# 31b6cee71dSXin LI# zsh/ash/ae/nawk/gawk magic from cameron@cs.unsw.oz.au (Cameron Simpson) 32b6cee71dSXin LI0 string/wt #!\ /bin/zsh Paul Falstad's zsh script text executable 33b6cee71dSXin LI!:mime text/x-shellscript 34b6cee71dSXin LI0 string/wt #!\ /usr/bin/zsh Paul Falstad's zsh script text executable 35b6cee71dSXin LI!:mime text/x-shellscript 36b6cee71dSXin LI0 string/wt #!\ /usr/local/bin/zsh Paul Falstad's zsh script text executable 37b6cee71dSXin LI!:mime text/x-shellscript 38b6cee71dSXin LI0 string/wt #!\ /usr/local/bin/ash Neil Brown's ash script text executable 39b6cee71dSXin LI!:mime text/x-shellscript 40b6cee71dSXin LI0 string/wt #!\ /usr/local/bin/ae Neil Brown's ae script text executable 41b6cee71dSXin LI!:mime text/x-shellscript 42b6cee71dSXin LI0 string/wt #!\ /bin/nawk new awk script text executable 43b6cee71dSXin LI!:mime text/x-nawk 44b6cee71dSXin LI0 string/wt #!\ /usr/bin/nawk new awk script text executable 45b6cee71dSXin LI!:mime text/x-nawk 46b6cee71dSXin LI0 string/wt #!\ /usr/local/bin/nawk new awk script text executable 47b6cee71dSXin LI!:mime text/x-nawk 48b6cee71dSXin LI0 string/wt #!\ /bin/gawk GNU awk script text executable 49b6cee71dSXin LI!:mime text/x-gawk 50b6cee71dSXin LI0 string/wt #!\ /usr/bin/gawk GNU awk script text executable 51b6cee71dSXin LI!:mime text/x-gawk 52b6cee71dSXin LI0 string/wt #!\ /usr/local/bin/gawk GNU awk script text executable 53b6cee71dSXin LI!:mime text/x-gawk 54b6cee71dSXin LI# 55b6cee71dSXin LI0 string/wt #!\ /bin/awk awk script text executable 56b6cee71dSXin LI!:mime text/x-awk 57b6cee71dSXin LI0 string/wt #!\ /usr/bin/awk awk script text executable 58b6cee71dSXin LI!:mime text/x-awk 5940427ccaSGordon Tetlow0 regex/4096 =^[\040\t\f\r\n]{0,100}BEGIN[\040\t\f\r\n]{0,100}[{] awk or perl script text 60b6cee71dSXin LI 61b6cee71dSXin LI# AT&T Bell Labs' Plan 9 shell 62b6cee71dSXin LI0 string/wt #!\ /bin/rc Plan 9 rc shell script text executable 63b6cee71dSXin LI 64b6cee71dSXin LI# bash shell magic, from Peter Tobias (tobias@server.et-inf.fho-emden.de) 65b6cee71dSXin LI0 string/wt #!\ /bin/bash Bourne-Again shell script text executable 66b6cee71dSXin LI!:mime text/x-shellscript 67b6cee71dSXin LI0 string/wb #!\ /bin/bash Bourne-Again shell script executable (binary data) 68b6cee71dSXin LI!:mime text/x-shellscript 69b6cee71dSXin LI0 string/wt #!\ /usr/bin/bash Bourne-Again shell script text executable 70b6cee71dSXin LI!:mime text/x-shellscript 71b6cee71dSXin LI0 string/wb #!\ /usr/bin/bash Bourne-Again shell script executable (binary data) 72b6cee71dSXin LI!:mime text/x-shellscript 73b6cee71dSXin LI0 string/wt #!\ /usr/local/bash Bourne-Again shell script text executable 74b6cee71dSXin LI!:mime text/x-shellscript 75b6cee71dSXin LI0 string/wb #!\ /usr/local/bash Bourne-Again shell script executable (binary data) 76b6cee71dSXin LI!:mime text/x-shellscript 77b6cee71dSXin LI0 string/wt #!\ /usr/local/bin/bash Bourne-Again shell script text executable 78b6cee71dSXin LI!:mime text/x-shellscript 79b6cee71dSXin LI0 string/wb #!\ /usr/local/bin/bash Bourne-Again shell script executable (binary data) 80b6cee71dSXin LI!:mime text/x-shellscript 815f0216bdSXin LI0 string/wt #!\ /usr/bin/env\ bash Bourne-Again shell script text executable 825f0216bdSXin LI!:mime text/x-shellscript 83b6cee71dSXin LI 84b6cee71dSXin LI# PHP scripts 85b6cee71dSXin LI# Ulf Harnhammar <ulfh@update.uu.se> 86b6cee71dSXin LI0 search/1/c =<?php PHP script text 8740427ccaSGordon Tetlow!:strength + 30 88b6cee71dSXin LI!:mime text/x-php 89b6cee71dSXin LI0 search/1 =<?\n PHP script text 90b6cee71dSXin LI!:mime text/x-php 91b6cee71dSXin LI0 search/1 =<?\r PHP script text 92b6cee71dSXin LI!:mime text/x-php 93b6cee71dSXin LI0 search/1/w #!\ /usr/local/bin/php PHP script text executable 94b6cee71dSXin LI!:strength + 10 95b6cee71dSXin LI!:mime text/x-php 96b6cee71dSXin LI0 search/1/w #!\ /usr/bin/php PHP script text executable 97b6cee71dSXin LI!:strength + 10 98b6cee71dSXin LI!:mime text/x-php 99*48c779cdSXin LI# Smarty compiled template, https://www.smarty.net/ 100b6cee71dSXin LI# Elan Ruusamae <glen@delfi.ee> 1013e41d09dSXin LI0 string =<?php 1023e41d09dSXin LI>5 regex [\ \n] 1033e41d09dSXin LI>>6 string /*\ Smarty\ version Smarty compiled template 10420f8619dSXin LI>>>24 regex [0-9.]+ \b, version %s 105b6cee71dSXin LI!:mime text/x-php 106b6cee71dSXin LI 107b6cee71dSXin LI0 string Zend\x00 PHP script Zend Optimizer data 108b6cee71dSXin LI 109b6cee71dSXin LI0 string/t $! DCL command file 110b6cee71dSXin LI 111b6cee71dSXin LI# Type: Pdmenu 112*48c779cdSXin LI# URL: https://packages.debian.org/pdmenu 113b6cee71dSXin LI# From: Edward Betts <edward@debian.org> 114b6cee71dSXin LI0 string #!/usr/bin/pdmenu Pdmenu configuration file text 115a5d223e6SXin LI 116a5d223e6SXin LI# From Danny Weldon 117a5d223e6SXin LI0 string \x0b\x13\x08\x00 118a5d223e6SXin LI>0x04 uleshort <4 ksh byte-code version %d 119