Config option to create an fgrep alias
This commit is contained in:
parent
c5408fe7f7
commit
c91ce57099
@ -67,6 +67,15 @@ config CONFIG_FEATURE_GREP_EGREP_ALIAS
|
|||||||
help
|
help
|
||||||
Please submit a patch to add help text for this item.
|
Please submit a patch to add help text for this item.
|
||||||
|
|
||||||
|
config CONFIG_FEATURE_GREP_FGREP_ALIAS
|
||||||
|
bool " Alias fgrep to grep -f"
|
||||||
|
default y
|
||||||
|
depends on CONFIG_GREP
|
||||||
|
help
|
||||||
|
fgrep sees the search pattern as a normal sting rather than
|
||||||
|
regular expressions.
|
||||||
|
grep -f is always builtin, this just creates the fgrep alias.
|
||||||
|
|
||||||
config CONFIG_FEATURE_GREP_CONTEXT
|
config CONFIG_FEATURE_GREP_CONTEXT
|
||||||
bool " Enable before and after context flags (-A, -B and -C)"
|
bool " Enable before and after context flags (-A, -B and -C)"
|
||||||
default y
|
default y
|
||||||
|
@ -196,6 +196,9 @@
|
|||||||
#ifdef CONFIG_FDISK
|
#ifdef CONFIG_FDISK
|
||||||
APPLET(fdisk, fdisk_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
|
APPLET(fdisk, fdisk_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
|
||||||
#endif
|
#endif
|
||||||
|
#if defined(CONFIG_FEATURE_GREP_FGREP_ALIAS)
|
||||||
|
APPLET_NOUSAGE("fgrep", grep_main, _BB_DIR_BIN, _BB_SUID_NEVER)
|
||||||
|
#endif
|
||||||
#ifdef CONFIG_FIND
|
#ifdef CONFIG_FIND
|
||||||
APPLET(find, find_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
|
APPLET(find, find_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user