aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/libmagic/magic/Magdir/varied.script
blob: 74b1b2276c51aa47125ba703b6739859f6573c93 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#------------------------------------------------------------------------------
# $File: varied.script,v 1.15 2022/10/18 13:01:30 christos Exp $
# varied.script:  file(1) magic for various interpreter scripts

0	string/wt	#!\ 	a
>&-1	string/T	x	%s script text executable
!:strength / 3

0	string/wb	#!\ 	a
>&-1	string/T	x	%s script executable (binary data)
!:strength / 3


# using env
0	string/wt	#!\ /usr/bin/env		a
>15	string/T	>\0			%s script text executable
!:strength / 6

0	string/wb	#!\ /usr/bin/env		a
>15	string/T	>\0			%s script executable (binary data)
!:strength / 6