xref: /freebsd/contrib/file/magic/Magdir/varied.script (revision ae316d1d1cffd71ab7751f94e10118777a88e027)
1b6cee71dSXin LI#------------------------------------------------------------------------------
2*ae316d1dSXin LI# $File: varied.script,v 1.16 2024/02/04 19:26:02 christos Exp $
3b6cee71dSXin LI# varied.script:  file(1) magic for various interpreter scripts
4b6cee71dSXin LI
5*ae316d1dSXin LI0	string		#![	Rust Source file
6*ae316d1dSXin LI!:ext rs
7*ae316d1dSXin LI
8898496eeSXin LI0	string/wt	#!\ 	a
9898496eeSXin LI>&-1	string/T	x	%s script text executable
10898496eeSXin LI!:strength / 3
11b6cee71dSXin LI
12898496eeSXin LI0	string/wb	#!\ 	a
13898496eeSXin LI>&-1	string/T	x	%s script executable (binary data)
14898496eeSXin LI!:strength / 3
15b6cee71dSXin LI
16b6cee71dSXin LI
17b6cee71dSXin LI# using env
18898496eeSXin LI0	string/wt	#!\ /usr/bin/env		a
19898496eeSXin LI>15	string/T	>\0			%s script text executable
20898496eeSXin LI!:strength / 6
21b6cee71dSXin LI
22898496eeSXin LI0	string/wb	#!\ /usr/bin/env		a
23898496eeSXin LI>15	string/T	>\0			%s script executable (binary data)
24898496eeSXin LI!:strength / 6
25