commands 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. #------------------------------------------------------------------------------
  2. # commands: file(1) magic for various shells and interpreters
  3. #
  4. #0 string : shell archive or script for antique kernel text
  5. 0 string/b #!\ /bin/sh POSIX shell script text executable
  6. !:mime text/x-shellscript
  7. 0 string/b #!\ /bin/csh C shell script text executable
  8. !:mime text/x-shellscript
  9. # korn shell magic, sent by George Wu, gwu@clyde.att.com
  10. 0 string/b #!\ /bin/ksh Korn shell script text executable
  11. !:mime text/x-shellscript
  12. 0 string/b #!\ /bin/tcsh Tenex C shell script text executable
  13. !:mime text/x-shellscript
  14. 0 string/b #!\ /usr/local/tcsh Tenex C shell script text executable
  15. !:mime text/x-shellscript
  16. 0 string/b #!\ /usr/local/bin/tcsh Tenex C shell script text executable
  17. !:mime text/x-shellscript
  18. #
  19. # zsh/ash/ae/nawk/gawk magic from cameron@cs.unsw.oz.au (Cameron Simpson)
  20. 0 string/b #!\ /bin/zsh Paul Falstad's zsh script text executable
  21. !:mime text/x-shellscript
  22. 0 string/b #!\ /usr/bin/zsh Paul Falstad's zsh script text executable
  23. !:mime text/x-shellscript
  24. 0 string/b #!\ /usr/local/bin/zsh Paul Falstad's zsh script text executable
  25. !:mime text/x-shellscript
  26. 0 string/b #!\ /usr/local/bin/ash Neil Brown's ash script text executable
  27. !:mime text/x-shellscript
  28. 0 string/b #!\ /usr/local/bin/ae Neil Brown's ae script text executable
  29. !:mime text/x-shellscript
  30. 0 string/b #!\ /bin/nawk new awk script text executable
  31. !:mime text/x-nawk
  32. 0 string/b #!\ /usr/bin/nawk new awk script text executable
  33. !:mime text/x-nawk
  34. 0 string/b #!\ /usr/local/bin/nawk new awk script text executable
  35. !:mime text/x-nawk
  36. 0 string/b #!\ /bin/gawk GNU awk script text executable
  37. !:mime text/x-gawk
  38. 0 string/b #!\ /usr/bin/gawk GNU awk script text executable
  39. !:mime text/x-gawk
  40. 0 string/b #!\ /usr/local/bin/gawk GNU awk script text executable
  41. !:mime text/x-gawk
  42. #
  43. 0 string/b #!\ /bin/awk awk script text executable
  44. !:mime text/x-awk
  45. 0 string/b #!\ /usr/bin/awk awk script text executable
  46. !:mime text/x-awk
  47. # update to distinguish from *.vcf files
  48. # this is broken because postscript has /EBEGIN{ for example.
  49. #0 search/Bb BEGIN { awk script text
  50. # AT&T Bell Labs' Plan 9 shell
  51. 0 string/b #!\ /bin/rc Plan 9 rc shell script text executable
  52. # bash shell magic, from Peter Tobias (tobias@server.et-inf.fho-emden.de)
  53. 0 string/b #!\ /bin/bash Bourne-Again shell script text executable
  54. !:mime text/x-shellscript
  55. 0 string/b #!\ /usr/local/bin/bash Bourne-Again shell script text executable
  56. !:mime text/x-shellscript
  57. # using env
  58. 0 string #!/usr/bin/env a
  59. >15 string >\0 %s script text executable
  60. 0 string #!\ /usr/bin/env a
  61. >16 string >\0 %s script text executable
  62. # PHP scripts
  63. # Ulf Harnhammar <ulfh@update.uu.se>
  64. 0 search/1/c =<?php PHP script text
  65. !:mime text/x-php
  66. 0 search/1 =<?\n PHP script text
  67. !:mime text/x-php
  68. 0 search/1 =<?\r PHP script text
  69. !:mime text/x-php
  70. 0 search/1/b #!\ /usr/local/bin/php PHP script text executable
  71. !:mime text/x-php
  72. 0 search/1/b #!\ /usr/bin/php PHP script text executable
  73. !:mime text/x-php
  74. 0 string Zend\x00 PHP script Zend Optimizer data
  75. 0 string $! DCL command file