aboutsummaryrefslogtreecommitdiff
path: root/findutils/grep.c
diff options
context:
space:
mode:
Diffstat (limited to 'findutils/grep.c')
-rw-r--r--findutils/grep.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/findutils/grep.c b/findutils/grep.c
index e0f01c9c2..9d38ef912 100644
--- a/findutils/grep.c
+++ b/findutils/grep.c
@@ -559,6 +559,11 @@ int grep_main(int argc, char **argv)
) {
reflags |= REG_EXTENDED;
}
+#if ENABLE_EXTRA_COMPAT
+ else {
+ reflags = RE_SYNTAX_GREP;
+ }
+#endif
if (option_mask32 & OPT_i) {
#if !ENABLE_EXTRA_COMPAT