xref: /freebsd/contrib/file/magic/Magdir/varied.script (revision dd41de95a84d979615a2ef11df6850622bf6184e)
1#------------------------------------------------------------------------------
2# $File: varied.script,v 1.13 2019/10/11 14:35:29 christos Exp $
3# varied.script:  file(1) magic for various interpreter scripts
4
50	string/t		#!\ /			a
6>3	string		>\0			%s script text executable
7!:strength / 2
8
90	string/b		#!\ /			a
10>3	string		>\0			%s script executable (binary data)
11!:strength / 2
12
130	string/t		#!\t/			a
14>3	string		>\0			%s script text executable
15!:strength / 2
16
170	string/b		#!\t/			a
18>3	string		>\0			%s script executable (binary data)
19!:strength / 2
20
210	string/t		#!/			a
22>2	string		>\0			%s script text executable
23!:strength / 2
24
250	string/b		#!/			a
26>2	string		>\0			%s script executable (binary data)
27!:strength / 2
28
290	string/t		#!\ 			script text executable
30>3	string		>\0			for %s
31!:strength / 2
32
330	string/b		#!\ 			script executable
34>3	string		>\0			for %s (binary data)
35!:strength / 2
36
37# using env
380	string/t	#!/usr/bin/env		a
39>15	string/t	>\0			%s script text executable
40!:strength / 10
41
420	string/b	#!/usr/bin/env		a
43>15	string/b	>\0			%s script executable (binary data)
44!:strength / 10
45
460	string/t	#!\ /usr/bin/env	a
47>16	string/t	>\0			%s script text executable
48!:strength / 10
49
500	string/b	#!\ /usr/bin/env	a
51>16	string/b	>\0			%s script executable (binary data)
52!:strength / 10
53
54# From: arno <arenevier@fdn.fr>
55# mozilla xpconnect typelib
56# see https://www.mozilla.org/scriptable/typelib_file.html
570	string 		XPCOM\nTypeLib\r\n\032		XPConnect Typelib
58>0x10  byte        x       version %d
59>>0x11 byte        x      \b.%d
60