grep: yet another fixlet for EXTRA_COMPAT

This commit is contained in:
Denis Vlasenko 2008-09-19 21:32:51 +00:00
parent c110b7d61f
commit 9ac706b7a6

View File

@ -559,6 +559,11 @@ int grep_main(int argc, char **argv)
) { ) {
reflags |= REG_EXTENDED; reflags |= REG_EXTENDED;
} }
#if ENABLE_EXTRA_COMPAT
else {
reflags = RE_SYNTAX_GREP;
}
#endif
if (option_mask32 & OPT_i) { if (option_mask32 & OPT_i) {
#if !ENABLE_EXTRA_COMPAT #if !ENABLE_EXTRA_COMPAT