mirror of
https://github.com/sheumann/hush.git
synced 2025-01-18 07:31:34 +00:00
Applied patch from Christophe Boyanique to add an egrep alias for grep.
This commit is contained in:
parent
20f61d35de
commit
40e5e7c7ea
3
Config.h
3
Config.h
@ -329,6 +329,9 @@
|
|||||||
// Support for the -A -B and -C context flags in grep
|
// Support for the -A -B and -C context flags in grep
|
||||||
//#define BB_FEATURE_GREP_CONTEXT
|
//#define BB_FEATURE_GREP_CONTEXT
|
||||||
//
|
//
|
||||||
|
// Support for the EGREP applet (alias to the grep applet)
|
||||||
|
//#define BB_FEATURE_GREP_EGREP_ALIAS
|
||||||
|
//
|
||||||
// Tell tftp what commands that should be supported.
|
// Tell tftp what commands that should be supported.
|
||||||
#define BB_FEATURE_TFTP_PUT
|
#define BB_FEATURE_TFTP_PUT
|
||||||
#define BB_FEATURE_TFTP_GET
|
#define BB_FEATURE_TFTP_GET
|
||||||
|
@ -125,6 +125,9 @@
|
|||||||
#ifdef BB_ECHO
|
#ifdef BB_ECHO
|
||||||
APPLET(echo, echo_main, _BB_DIR_BIN)
|
APPLET(echo, echo_main, _BB_DIR_BIN)
|
||||||
#endif
|
#endif
|
||||||
|
#if defined(BB_FEATURE_GREP_EGREP_ALIAS) && defined(BB_GREP)
|
||||||
|
APPLET(egrep, grep_main, _BB_DIR_BIN)
|
||||||
|
#endif
|
||||||
#ifdef BB_EXPR
|
#ifdef BB_EXPR
|
||||||
APPLET(expr, expr_main, _BB_DIR_USR_BIN)
|
APPLET(expr, expr_main, _BB_DIR_USR_BIN)
|
||||||
#endif
|
#endif
|
||||||
|
@ -344,6 +344,9 @@
|
|||||||
"\t-v\tselect non-matching lines\n" \
|
"\t-v\tselect non-matching lines\n" \
|
||||||
"\t-s\tsuppress file open/read error messages"
|
"\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 \
|
#define gunzip_trivial_usage \
|
||||||
"[OPTION]... FILE"
|
"[OPTION]... FILE"
|
||||||
#define gunzip_full_usage \
|
#define gunzip_full_usage \
|
||||||
|
@ -125,6 +125,9 @@
|
|||||||
#ifdef BB_ECHO
|
#ifdef BB_ECHO
|
||||||
APPLET(echo, echo_main, _BB_DIR_BIN)
|
APPLET(echo, echo_main, _BB_DIR_BIN)
|
||||||
#endif
|
#endif
|
||||||
|
#if defined(BB_FEATURE_GREP_EGREP_ALIAS) && defined(BB_GREP)
|
||||||
|
APPLET(egrep, grep_main, _BB_DIR_BIN)
|
||||||
|
#endif
|
||||||
#ifdef BB_EXPR
|
#ifdef BB_EXPR
|
||||||
APPLET(expr, expr_main, _BB_DIR_USR_BIN)
|
APPLET(expr, expr_main, _BB_DIR_USR_BIN)
|
||||||
#endif
|
#endif
|
||||||
|
@ -344,6 +344,9 @@
|
|||||||
"\t-v\tselect non-matching lines\n" \
|
"\t-v\tselect non-matching lines\n" \
|
||||||
"\t-s\tsuppress file open/read error messages"
|
"\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 \
|
#define gunzip_trivial_usage \
|
||||||
"[OPTION]... FILE"
|
"[OPTION]... FILE"
|
||||||
#define gunzip_full_usage \
|
#define gunzip_full_usage \
|
||||||
|
3
usage.h
3
usage.h
@ -344,6 +344,9 @@
|
|||||||
"\t-v\tselect non-matching lines\n" \
|
"\t-v\tselect non-matching lines\n" \
|
||||||
"\t-s\tsuppress file open/read error messages"
|
"\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 \
|
#define gunzip_trivial_usage \
|
||||||
"[OPTION]... FILE"
|
"[OPTION]... FILE"
|
||||||
#define gunzip_full_usage \
|
#define gunzip_full_usage \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user