commands 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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 Bourne shell script text executable
  6. 0 string/b #!\ /bin/csh C shell script text executable
  7. # korn shell magic, sent by George Wu, gwu@clyde.att.com
  8. 0 string/b #!\ /bin/ksh Korn shell script text executable
  9. 0 string/b #!\ /bin/tcsh Tenex C shell script text executable
  10. 0 string/b #!\ /usr/local/tcsh Tenex C shell script text executable
  11. 0 string/b #!\ /usr/local/bin/tcsh Tenex C shell script text executable
  12. #
  13. # zsh/ash/ae/nawk/gawk magic from cameron@cs.unsw.oz.au (Cameron Simpson)
  14. 0 string/b #!\ /usr/local/bin/zsh Paul Falstad's zsh script text executable
  15. 0 string/b #!\ /usr/local/bin/ash Neil Brown's ash script text executable
  16. 0 string/b #!\ /usr/local/bin/ae Neil Brown's ae script text executable
  17. 0 string/b #!\ /bin/nawk new awk script text executable
  18. 0 string/b #!\ /usr/bin/nawk new awk script text executable
  19. 0 string/b #!\ /usr/local/bin/nawk new awk script text executable
  20. 0 string/b #!\ /bin/gawk GNU awk script text executable
  21. 0 string/b #!\ /usr/bin/gawk GNU awk script text executable
  22. 0 string/b #!\ /usr/local/bin/gawk GNU awk script text executable
  23. #
  24. 0 string/b #!\ /bin/awk awk script text executable
  25. 0 string/b #!\ /usr/bin/awk awk script text executable
  26. 0 string BEGIN awk script text
  27. # For Larry Wall's perl language. The ``eval'' line recognizes an
  28. # outrageously clever hack for USG systems.
  29. # Keith Waclena <keith@cerberus.uchicago.edu>
  30. 0 string/b #!\ /bin/perl perl script text executable
  31. 0 string eval\ "exec\ /bin/perl perl script text
  32. 0 string/b #!\ /usr/bin/perl perl script text executable
  33. 0 string eval\ "exec\ /usr/bin/perl perl script text
  34. 0 string/b #!\ /usr/local/bin/perl perl script text
  35. 0 string eval\ "exec\ /usr/local/bin/perl perl script text executable
  36. 0 string eval\ '(exit\ $?0)'\ &&\ eval\ 'exec perl script text
  37. # AT&T Bell Labs' Plan 9 shell
  38. 0 string/b #!\ /bin/rc Plan 9 rc shell script text executable
  39. # bash shell magic, from Peter Tobias (tobias@server.et-inf.fho-emden.de)
  40. 0 string/b #!\ /bin/bash Bourne-Again shell script text executable
  41. 0 string/b #!\ /usr/local/bin/bash Bourne-Again shell script text executable
  42. # using env
  43. 0 string #!/usr/bin/env a
  44. >15 string >\0 %s script text executable
  45. 0 string #!\ /usr/bin/env a
  46. >16 string >\0 %s script text executable
  47. # generic shell magic
  48. 0 string #!\ / a
  49. >3 string >\n %s script text executable
  50. 0 string #!\ / a
  51. >3 string >\n %s script text executable
  52. 0 string #!/ a
  53. >2 string >\n %s script text executable
  54. 0 string #!\ script text executable
  55. >3 string >\0 for %s