lua 1.0 KB

12345678910111213141516171819202122232425262728293031
  1. #------------------------------------------------------------------------------
  2. # $File: lua,v 1.8 2020/10/08 23:23:56 christos Exp $
  3. # lua: file(1) magic for Lua scripting language
  4. # URL: https://www.lua.org/
  5. # From: Reuben Thomas <rrt@sc3d.org>, Seo Sanghyeon <tinuviel@sparcs.kaist.ac.kr>
  6. # Lua scripts
  7. 0 search/1/w #!\ /usr/bin/lua Lua script text executable
  8. !:mime text/x-lua
  9. 0 search/1/w #!\ /usr/local/bin/lua Lua script text executable
  10. !:mime text/x-lua
  11. 0 search/1 #!/usr/bin/env\ lua Lua script text executable
  12. !:mime text/x-lua
  13. 0 search/1 #!\ /usr/bin/env\ lua Lua script text executable
  14. !:mime text/x-lua
  15. # Lua bytecode
  16. 0 string \033Lua Lua bytecode,
  17. # 2.4 uses 0x23 as its version byte because it shares the format
  18. # with 2.3 (which was never released publicly).
  19. >4 byte 0x23 version 2.4
  20. >4 byte 0x25 version 2.5/3.0
  21. >4 byte 0x31 version 3.1
  22. >4 byte 0x32 version 3.2
  23. >4 byte 0x40 version 4.0
  24. >4 byte 0x50 version 5.0
  25. >4 byte 0x51 version 5.1
  26. >4 byte 0x52 version 5.2
  27. >4 byte 0x53 version 5.3
  28. >4 byte 0x54 version 5.4