Import grep-2.7
[dragonfly.git] / contrib / grep / src / egrep.c
1 #include <config.h>
2 #include "search.h"
3
4 static void
5 Ecompile (char const *pattern, size_t size)
6 {
7   GEAcompile (pattern, size, RE_SYNTAX_POSIX_EGREP | RE_NO_EMPTY_RANGES);
8 }
9
10 struct matcher const matchers[] = {
11   { "egrep", Ecompile, EGexecute },
12   { NULL, NULL, NULL },
13 };
14
15 const char before_options[] =
16 N_("PATTERN is an extended regular expression (ERE).\n");
17 const char after_options[] =
18 N_("Invocation as `egrep' is deprecated; use `grep -E' instead.\n");