diff options
author | Christos Zoulas <christos@zoulas.com> | 2014-05-30 16:48:44 +0000 |
---|---|---|
committer | Christos Zoulas <christos@zoulas.com> | 2014-05-30 16:48:44 +0000 |
commit | ff00552dd92bd765e18657ae785af116a5d028d4 (patch) | |
tree | 08402bc9cc96a83aefab094fc60c59029b20c0b8 /magic/Magdir/commands | |
parent | 5d4533dd766b78b29c9ace8b79ff13cf474b3029 (diff) | |
download | file-git-ff00552dd92bd765e18657ae785af116a5d028d4.tar.gz |
Limit regex search for BEGIN to the first 4K of the file.
Diffstat (limited to 'magic/Magdir/commands')
-rw-r--r-- | magic/Magdir/commands | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/magic/Magdir/commands b/magic/Magdir/commands index d5d45047..20c1058c 100644 --- a/magic/Magdir/commands +++ b/magic/Magdir/commands @@ -1,6 +1,6 @@ #------------------------------------------------------------------------------ -# $File: commands,v 1.49 2014/05/28 19:52:36 christos Exp $ +# $File: commands,v 1.50 2014/05/30 16:48:44 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 |