commands 3.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. #------------------------------------------------------------------------------
  2. # $File: commands,v 1.41 2011/05/02 12:36:41 christos Exp $
  3. # commands: file(1) magic for various shells and interpreters
  4. #
  5. #0 string/w : shell archive or script for antique kernel text
  6. 0 string/wt #!\ /bin/sh POSIX shell script text executable
  7. !:mime text/x-shellscript
  8. 0 string/wt #!\ /bin/csh C shell script text executable
  9. !:mime text/x-shellscript
  10. # korn shell magic, sent by George Wu, gwu@clyde.att.com
  11. 0 string/wt #!\ /bin/ksh Korn shell script text executable
  12. !:mime text/x-shellscript
  13. 0 string/wt #!\ /bin/tcsh Tenex C shell script text executable
  14. !:mime text/x-shellscript
  15. 0 string/wt #!\ /usr/bin/tcsh Tenex C shell script text executable
  16. !:mime text/x-shellscript
  17. 0 string/wt #!\ /usr/local/tcsh Tenex C shell script text executable
  18. !:mime text/x-shellscript
  19. 0 string/wt #!\ /usr/local/bin/tcsh Tenex C shell script text executable
  20. !:mime text/x-shellscript
  21. #
  22. # zsh/ash/ae/nawk/gawk magic from cameron@cs.unsw.oz.au (Cameron Simpson)
  23. 0 string/wt #!\ /bin/zsh Paul Falstad's zsh script text executable
  24. !:mime text/x-shellscript
  25. 0 string/wt #!\ /usr/bin/zsh Paul Falstad's zsh script text executable
  26. !:mime text/x-shellscript
  27. 0 string/wt #!\ /usr/local/bin/zsh Paul Falstad's zsh script text executable
  28. !:mime text/x-shellscript
  29. 0 string/wt #!\ /usr/local/bin/ash Neil Brown's ash script text executable
  30. !:mime text/x-shellscript
  31. 0 string/wt #!\ /usr/local/bin/ae Neil Brown's ae script text executable
  32. !:mime text/x-shellscript
  33. 0 string/wt #!\ /bin/nawk new awk script text executable
  34. !:mime text/x-nawk
  35. 0 string/wt #!\ /usr/bin/nawk new awk script text executable
  36. !:mime text/x-nawk
  37. 0 string/wt #!\ /usr/local/bin/nawk new awk script text executable
  38. !:mime text/x-nawk
  39. 0 string/wt #!\ /bin/gawk GNU awk script text executable
  40. !:mime text/x-gawk
  41. 0 string/wt #!\ /usr/bin/gawk GNU awk script text executable
  42. !:mime text/x-gawk
  43. 0 string/wt #!\ /usr/local/bin/gawk GNU awk script text executable
  44. !:mime text/x-gawk
  45. #
  46. 0 string/wt #!\ /bin/awk awk script text executable
  47. !:mime text/x-awk
  48. 0 string/wt #!\ /usr/bin/awk awk script text executable
  49. !:mime text/x-awk
  50. 0 regex =^\\s*BEGIN\\s*[{] awk script text
  51. # AT&T Bell Labs' Plan 9 shell
  52. 0 string/wt #!\ /bin/rc Plan 9 rc shell script text executable
  53. # bash shell magic, from Peter Tobias (tobias@server.et-inf.fho-emden.de)
  54. 0 string/wt #!\ /bin/bash Bourne-Again shell script text executable
  55. !:mime text/x-shellscript
  56. 0 string/wt #!\ /usr/bin/bash Bourne-Again shell script text executable
  57. !:mime text/x-shellscript
  58. 0 string/wt #!\ /usr/local/bash Bourne-Again shell script text executable
  59. !:mime text/x-shellscript
  60. 0 string/wt #!\ /usr/local/bin/bash Bourne-Again shell script text executable
  61. !:mime text/x-shellscript
  62. # using env
  63. 0 string/t #!/usr/bin/env a
  64. >15 string/t >\0 %s script text executable
  65. 0 string/t #!\ /usr/bin/env a
  66. >16 string/t >\0 %s script text executable
  67. # PHP scripts
  68. # Ulf Harnhammar <ulfh@update.uu.se>
  69. 0 search/1/c =<?php PHP script text
  70. !:mime text/x-php
  71. 0 search/1 =<?\n PHP script text
  72. !:mime text/x-php
  73. 0 search/1 =<?\r PHP script text
  74. !:mime text/x-php
  75. 0 search/1/w #!\ /usr/local/bin/php PHP script text executable
  76. !:mime text/x-php
  77. 0 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>
  81. 0 string =<?php\ /*\ Smarty\ version Smarty compiled template
  82. >24 regex [0-9.]+ \b, version %s
  83. !:mime text/x-php
  84. 0 string Zend\x00 PHP script Zend Optimizer data
  85. 0 string/t $! DCL command file
  86. # Type: Pdmenu
  87. # URL: http://packages.debian.org/pdmenu
  88. # From: Edward Betts <edward@debian.org>
  89. 0 string #!/usr/bin/pdmenu Pdmenu configuration file text