diff options
author | Mark Whitley | 2001-03-14 17:45:45 +0000 |
---|---|---|
committer | Mark Whitley | 2001-03-14 17:45:45 +0000 |
commit | 40e5e7c7eaab7c0806acf6cc8a51c8b15c7e0b1b (patch) | |
tree | d843aa04ede661255b69f62e6a5a775a4b2cea2f /include | |
parent | 20f61d35de081067ce2e31c58c80cd30070ee876 (diff) | |
download | busybox-40e5e7c7eaab7c0806acf6cc8a51c8b15c7e0b1b.zip busybox-40e5e7c7eaab7c0806acf6cc8a51c8b15c7e0b1b.tar.gz |
Applied patch from Christophe Boyanique to add an egrep alias for grep.
Diffstat (limited to 'include')
-rw-r--r-- | include/applets.h | 3 | ||||
-rw-r--r-- | include/usage.h | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/include/applets.h b/include/applets.h index b3fb291..f85f457 100644 --- a/include/applets.h +++ b/include/applets.h @@ -125,6 +125,9 @@ #ifdef BB_ECHO APPLET(echo, echo_main, _BB_DIR_BIN) #endif +#if defined(BB_FEATURE_GREP_EGREP_ALIAS) && defined(BB_GREP) + APPLET(egrep, grep_main, _BB_DIR_BIN) +#endif #ifdef BB_EXPR APPLET(expr, expr_main, _BB_DIR_USR_BIN) #endif diff --git a/include/usage.h b/include/usage.h index f316018..b60f1f9 100644 --- a/include/usage.h +++ b/include/usage.h @@ -344,6 +344,9 @@ "\t-v\tselect non-matching lines\n" \ "\t-s\tsuppress file open/read error messages" +#define egrep_trivial_usage grep_trivial_usage +#define egrep_full_usage grep_full_usage + #define gunzip_trivial_usage \ "[OPTION]... FILE" #define gunzip_full_usage \ |