Config option to create an fgrep alias
authorGlenn L McGrath <bug1@ihug.co.nz>
Sun, 27 Apr 2003 02:43:54 +0000 (02:43 -0000)
committerGlenn L McGrath <bug1@ihug.co.nz>
Sun, 27 Apr 2003 02:43:54 +0000 (02:43 -0000)
findutils/Config.in
include/applets.h

index 7cfcf2fa452ee7611a415cb0b2216bbb07cfed39..79358c6558f7e2811d127c40f1746c6bd094de4e 100644 (file)
@@ -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
index a4d27274665bfdbeb9334a2fa2497998649a51da..7267b8248986f9874d014bac056a42e90cecb0ab 100644 (file)
 #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