]> granicus.if.org Git - file/commitdiff
Limit regex search for BEGIN to the first 4K of the file.
authorChristos Zoulas <christos@zoulas.com>
Fri, 30 May 2014 16:48:44 +0000 (16:48 +0000)
committerChristos Zoulas <christos@zoulas.com>
Fri, 30 May 2014 16:48:44 +0000 (16:48 +0000)
magic/Magdir/commands

index 26b2869c6d786f100498e52e8d1c7eb4304960a1..bcd0f438e6f72e556c88330630c129df0c6af6e9 100644 (file)
@@ -1,6 +1,6 @@
 
 #------------------------------------------------------------------------------
-# $File: commands,v 1.48 2014/03/04 12:20:42 kim Exp $
+# $File: commands,v 1.49 2014/05/28 19:52:36 christos Exp $
 # commands:  file(1) magic for various shells and interpreters
 #
 #0     string/w        :                       shell archive or script for antique kernel text
@@ -56,8 +56,7 @@
 !:mime text/x-awk
 0      string/wt       #!\ /usr/bin/awk        awk script text executable
 !:mime text/x-awk
-0       search/16384    BEGIN
->0     regex           =^\\s{0,100}BEGIN\\s{0,100}[{]  awk script text
+0      regex/4096      =^\\s{0,100}BEGIN\\s{0,100}[{]  awk script text
 
 # AT&T Bell Labs' Plan 9 shell
 0      string/wt       #!\ /bin/rc     Plan 9 rc shell script text executable