1 #------------------------------------------------------------------------------
2 # file: file(1) magic for Tcl scripting language
3 # URL: http://www.tcl.tk/
7 0 search/1/w #!\ /usr/bin/tcl Tcl script text executable
9 0 search/1/w #!\ /usr/local/bin/tcl Tcl script text executable
11 0 search/1 #!/usr/bin/env\ tcl Tcl script text executable
13 0 search/1 #!\ /usr/bin/env\ tcl Tcl script text executable
15 0 search/1/w #!\ /usr/bin/wish Tcl/Tk script text executable
17 0 search/1/w #!\ /usr/local/bin/wish Tcl/Tk script text executable
19 0 search/1 #!/usr/bin/env\ wish Tcl/Tk script text executable
21 0 search/1 #!\ /usr/bin/env\ wish Tcl/Tk script text executable
24 # check the first line
25 0 search/1 package\ req
26 >0 regex \^package[\ \t]+req Tcl script
27 # not 'p', check other lines
29 >0 regex \^package[\ \t]+req Tcl script