diff options
| author | Mark Whitley <markw@lineo.com> | 2001-03-14 17:45:45 +0000 |
|---|---|---|
| committer | Mark Whitley <markw@lineo.com> | 2001-03-14 17:45:45 +0000 |
| commit | 40e5e7c7eaab7c0806acf6cc8a51c8b15c7e0b1b (patch) | |
| tree | d843aa04ede661255b69f62e6a5a775a4b2cea2f | |
| parent | 20f61d35de081067ce2e31c58c80cd30070ee876 (diff) | |
| download | busybox-w32-40e5e7c7eaab7c0806acf6cc8a51c8b15c7e0b1b.tar.gz busybox-w32-40e5e7c7eaab7c0806acf6cc8a51c8b15c7e0b1b.tar.bz2 busybox-w32-40e5e7c7eaab7c0806acf6cc8a51c8b15c7e0b1b.zip | |
Applied patch from Christophe Boyanique to add an egrep alias for grep.
| -rw-r--r-- | Config.h | 3 | ||||
| -rw-r--r-- | applets.h | 3 | ||||
| -rw-r--r-- | applets/usage.h | 3 | ||||
| -rw-r--r-- | include/applets.h | 3 | ||||
| -rw-r--r-- | include/usage.h | 3 | ||||
| -rw-r--r-- | usage.h | 3 |
6 files changed, 18 insertions, 0 deletions
| @@ -329,6 +329,9 @@ | |||
| 329 | // Support for the -A -B and -C context flags in grep | 329 | // Support for the -A -B and -C context flags in grep |
| 330 | //#define BB_FEATURE_GREP_CONTEXT | 330 | //#define BB_FEATURE_GREP_CONTEXT |
| 331 | // | 331 | // |
| 332 | // Support for the EGREP applet (alias to the grep applet) | ||
| 333 | //#define BB_FEATURE_GREP_EGREP_ALIAS | ||
| 334 | // | ||
| 332 | // Tell tftp what commands that should be supported. | 335 | // Tell tftp what commands that should be supported. |
| 333 | #define BB_FEATURE_TFTP_PUT | 336 | #define BB_FEATURE_TFTP_PUT |
| 334 | #define BB_FEATURE_TFTP_GET | 337 | #define BB_FEATURE_TFTP_GET |
| @@ -125,6 +125,9 @@ | |||
| 125 | #ifdef BB_ECHO | 125 | #ifdef BB_ECHO |
| 126 | APPLET(echo, echo_main, _BB_DIR_BIN) | 126 | APPLET(echo, echo_main, _BB_DIR_BIN) |
| 127 | #endif | 127 | #endif |
| 128 | #if defined(BB_FEATURE_GREP_EGREP_ALIAS) && defined(BB_GREP) | ||
| 129 | APPLET(egrep, grep_main, _BB_DIR_BIN) | ||
| 130 | #endif | ||
| 128 | #ifdef BB_EXPR | 131 | #ifdef BB_EXPR |
| 129 | APPLET(expr, expr_main, _BB_DIR_USR_BIN) | 132 | APPLET(expr, expr_main, _BB_DIR_USR_BIN) |
| 130 | #endif | 133 | #endif |
diff --git a/applets/usage.h b/applets/usage.h index f316018c8..b60f1f911 100644 --- a/applets/usage.h +++ b/applets/usage.h | |||
| @@ -344,6 +344,9 @@ | |||
| 344 | "\t-v\tselect non-matching lines\n" \ | 344 | "\t-v\tselect non-matching lines\n" \ |
| 345 | "\t-s\tsuppress file open/read error messages" | 345 | "\t-s\tsuppress file open/read error messages" |
| 346 | 346 | ||
| 347 | #define egrep_trivial_usage grep_trivial_usage | ||
| 348 | #define egrep_full_usage grep_full_usage | ||
| 349 | |||
| 347 | #define gunzip_trivial_usage \ | 350 | #define gunzip_trivial_usage \ |
| 348 | "[OPTION]... FILE" | 351 | "[OPTION]... FILE" |
| 349 | #define gunzip_full_usage \ | 352 | #define gunzip_full_usage \ |
diff --git a/include/applets.h b/include/applets.h index b3fb291d7..f85f45720 100644 --- a/include/applets.h +++ b/include/applets.h | |||
| @@ -125,6 +125,9 @@ | |||
| 125 | #ifdef BB_ECHO | 125 | #ifdef BB_ECHO |
| 126 | APPLET(echo, echo_main, _BB_DIR_BIN) | 126 | APPLET(echo, echo_main, _BB_DIR_BIN) |
| 127 | #endif | 127 | #endif |
| 128 | #if defined(BB_FEATURE_GREP_EGREP_ALIAS) && defined(BB_GREP) | ||
| 129 | APPLET(egrep, grep_main, _BB_DIR_BIN) | ||
| 130 | #endif | ||
| 128 | #ifdef BB_EXPR | 131 | #ifdef BB_EXPR |
| 129 | APPLET(expr, expr_main, _BB_DIR_USR_BIN) | 132 | APPLET(expr, expr_main, _BB_DIR_USR_BIN) |
| 130 | #endif | 133 | #endif |
diff --git a/include/usage.h b/include/usage.h index f316018c8..b60f1f911 100644 --- a/include/usage.h +++ b/include/usage.h | |||
| @@ -344,6 +344,9 @@ | |||
| 344 | "\t-v\tselect non-matching lines\n" \ | 344 | "\t-v\tselect non-matching lines\n" \ |
| 345 | "\t-s\tsuppress file open/read error messages" | 345 | "\t-s\tsuppress file open/read error messages" |
| 346 | 346 | ||
| 347 | #define egrep_trivial_usage grep_trivial_usage | ||
| 348 | #define egrep_full_usage grep_full_usage | ||
| 349 | |||
| 347 | #define gunzip_trivial_usage \ | 350 | #define gunzip_trivial_usage \ |
| 348 | "[OPTION]... FILE" | 351 | "[OPTION]... FILE" |
| 349 | #define gunzip_full_usage \ | 352 | #define gunzip_full_usage \ |
| @@ -344,6 +344,9 @@ | |||
| 344 | "\t-v\tselect non-matching lines\n" \ | 344 | "\t-v\tselect non-matching lines\n" \ |
| 345 | "\t-s\tsuppress file open/read error messages" | 345 | "\t-s\tsuppress file open/read error messages" |
| 346 | 346 | ||
| 347 | #define egrep_trivial_usage grep_trivial_usage | ||
| 348 | #define egrep_full_usage grep_full_usage | ||
| 349 | |||
| 347 | #define gunzip_trivial_usage \ | 350 | #define gunzip_trivial_usage \ |
| 348 | "[OPTION]... FILE" | 351 | "[OPTION]... FILE" |
| 349 | #define gunzip_full_usage \ | 352 | #define gunzip_full_usage \ |
