varied.script 920 B

123456789101112131415161718192021222324252627282930313233
  1. #------------------------------------------------------------------------------
  2. # $File: varied.script,v 1.17 2025/03/10 20:41:09 christos Exp $
  3. # varied.script: file(1) magic for various interpreter scripts
  4. 0 string #![ Rust Source file
  5. !:ext rs
  6. 0 string/wt #!\ a
  7. >&-1 string/T x %s script text executable
  8. !:strength / 3
  9. 0 string/wb #!\ a
  10. >&-1 string/T x %s script executable (binary data)
  11. !:strength / 3
  12. # using env
  13. 0 regex/t #![[:space:]]*/usr/bin/env[[:space:]]* a
  14. >&0 string/T >\0 %s script text executable
  15. !:strength / 2
  16. 0 regex/b #![[:space:]]*/usr/bin/env[[:space:]]* a
  17. >&0 string/T >\0 %s script executable (binary data)
  18. !:strength / 2
  19. # using env
  20. 0 regex/t #![[:space:]]*/usr/bin/env[[:space:]]*-[Si0] a
  21. >&0 string/T >\0 %s script text executable
  22. !:strength / 2
  23. 0 regex/b #![[:space:]]*/usr/bin/env[[:space:]]*-[Si0] a
  24. >&0 string/T >\0 %s script executable (binary data)
  25. !:strength / 2