diff options
author | Glenn L McGrath | 2003-04-27 02:43:54 +0000 |
---|---|---|
committer | Glenn L McGrath | 2003-04-27 02:43:54 +0000 |
commit | c91ce5709998976d8b6614b3ac6201692d20eb94 (patch) | |
tree | ac868eaf7ef7fca5851603b6e3421750e36db0ed | |
parent | c5408fe7f7ed809f11dd406a403071715cc9bd06 (diff) | |
download | busybox-c91ce5709998976d8b6614b3ac6201692d20eb94.zip busybox-c91ce5709998976d8b6614b3ac6201692d20eb94.tar.gz |
Config option to create an fgrep alias
-rw-r--r-- | findutils/Config.in | 9 | ||||
-rw-r--r-- | include/applets.h | 3 |
2 files changed, 12 insertions, 0 deletions
diff --git a/findutils/Config.in b/findutils/Config.in index 7cfcf2f..79358c6 100644 --- a/findutils/Config.in +++ b/findutils/Config.in @@ -67,6 +67,15 @@ config CONFIG_FEATURE_GREP_EGREP_ALIAS help 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 bool " Enable before and after context flags (-A, -B and -C)" default y diff --git a/include/applets.h b/include/applets.h index a4d2727..7267b82 100644 --- a/include/applets.h +++ b/include/applets.h @@ -196,6 +196,9 @@ #ifdef CONFIG_FDISK APPLET(fdisk, fdisk_main, _BB_DIR_SBIN, _BB_SUID_NEVER) #endif +#if defined(CONFIG_FEATURE_GREP_FGREP_ALIAS) + APPLET_NOUSAGE("fgrep", grep_main, _BB_DIR_BIN, _BB_SUID_NEVER) +#endif #ifdef CONFIG_FIND APPLET(find, find_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER) #endif |