File: varied.script

package info (click to toggle)
file 1%3A5.46-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 7,064 kB
  • sloc: ansic: 17,919; sh: 4,291; makefile: 677; python: 267
file content (24 lines) | stat: -rw-r--r-- 621 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#------------------------------------------------------------------------------
# $File: varied.script,v 1.16 2024/02/04 19:26:02 christos Exp $
# varied.script:  file(1) magic for various interpreter scripts

0	string		#![	Rust Source file
!:ext rs

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