commands 3.1 KB

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