diff options
author | Eric Andersen | 2001-11-10 12:54:00 +0000 |
---|---|---|
committer | Eric Andersen | 2001-11-10 12:54:00 +0000 |
commit | dba4e6f0468ee3ec9cd3825404e85eeba3795c24 (patch) | |
tree | 081f722d5fd90526672f1cb4743315cde8144eef | |
parent | c223ced0eab3d7b579b42c4626bb40686bd81c9a (diff) | |
download | busybox-dba4e6f0468ee3ec9cd3825404e85eeba3795c24.zip busybox-dba4e6f0468ee3ec9cd3825404e85eeba3795c24.tar.gz |
Add in grep -E support
-rw-r--r-- | findutils/grep.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/findutils/grep.c b/findutils/grep.c index 7afa817..faecb58 100644 --- a/findutils/grep.c +++ b/findutils/grep.c @@ -253,6 +253,9 @@ extern int grep_main(int argc, char **argv) #ifdef CONFIG_FEATURE_GREP_CONTEXT "A:B:C:" #endif +#ifdef CONFIG_FEATURE_GREP_EGREP_ALIAS +"E" +#endif )) > 0) { switch (opt) { case 'i': @@ -285,6 +288,11 @@ extern int grep_main(int argc, char **argv) case 'e': add_regex(optarg); break; +#ifdef CONFIG_FEATURE_GREP_EGREP_ALIAS + case 'E': + reflags |= REG_EXTENDED; + break; +#endif case 'f': load_regexes_from_file(optarg); break; |