xref: /freebsd/contrib/file/magic/Magdir/varied.script (revision b64c5a0ace59af62eff52bfe110a521dc73c937b)
1#------------------------------------------------------------------------------
2# $File: varied.script,v 1.16 2024/02/04 19:26:02 christos Exp $
3# varied.script:  file(1) magic for various interpreter scripts
4
50	string		#![	Rust Source file
6!:ext rs
7
80	string/wt	#!\ 	a
9>&-1	string/T	x	%s script text executable
10!:strength / 3
11
120	string/wb	#!\ 	a
13>&-1	string/T	x	%s script executable (binary data)
14!:strength / 3
15
16
17# using env
180	string/wt	#!\ /usr/bin/env		a
19>15	string/T	>\0			%s script text executable
20!:strength / 6
21
220	string/wb	#!\ /usr/bin/env		a
23>15	string/T	>\0			%s script executable (binary data)
24!:strength / 6
25