diff options
-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 7cfcf2fa4..79358c655 100644 --- a/findutils/Config.in +++ b/findutils/Config.in | |||
@@ -67,6 +67,15 @@ config CONFIG_FEATURE_GREP_EGREP_ALIAS | |||
67 | help | 67 | help |
68 | Please submit a patch to add help text for this item. | 68 | Please submit a patch to add help text for this item. |
69 | 69 | ||
70 | config CONFIG_FEATURE_GREP_FGREP_ALIAS | ||
71 | bool " Alias fgrep to grep -f" | ||
72 | default y | ||
73 | depends on CONFIG_GREP | ||
74 | help | ||
75 | fgrep sees the search pattern as a normal sting rather than | ||
76 | regular expressions. | ||
77 | grep -f is always builtin, this just creates the fgrep alias. | ||
78 | |||
70 | config CONFIG_FEATURE_GREP_CONTEXT | 79 | config CONFIG_FEATURE_GREP_CONTEXT |
71 | bool " Enable before and after context flags (-A, -B and -C)" | 80 | bool " Enable before and after context flags (-A, -B and -C)" |
72 | default y | 81 | default y |
diff --git a/include/applets.h b/include/applets.h index a4d272746..7267b8248 100644 --- a/include/applets.h +++ b/include/applets.h | |||
@@ -196,6 +196,9 @@ | |||
196 | #ifdef CONFIG_FDISK | 196 | #ifdef CONFIG_FDISK |
197 | APPLET(fdisk, fdisk_main, _BB_DIR_SBIN, _BB_SUID_NEVER) | 197 | APPLET(fdisk, fdisk_main, _BB_DIR_SBIN, _BB_SUID_NEVER) |
198 | #endif | 198 | #endif |
199 | #if defined(CONFIG_FEATURE_GREP_FGREP_ALIAS) | ||
200 | APPLET_NOUSAGE("fgrep", grep_main, _BB_DIR_BIN, _BB_SUID_NEVER) | ||
201 | #endif | ||
199 | #ifdef CONFIG_FIND | 202 | #ifdef CONFIG_FIND |
200 | APPLET(find, find_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER) | 203 | APPLET(find, find_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER) |
201 | #endif | 204 | #endif |