csplit, grep: use eregcomp

This commit is contained in:
Hiltjo Posthuma
2014-11-16 15:17:46 +01:00
committed by sin
parent 3fb0e50668
commit 1822f70d12
2 changed files with 3 additions and 8 deletions

View File

@@ -362,8 +362,7 @@ do_rexp(const char *expr)
} else
ofs = 0;
if (regcomp(&cre, re, REG_NOSUB) != 0)
eprintf("%s: bad regular expression'n", re);
eregcomp(&cre, re, REG_NOSUB);
if (*expr == '/')
/* /regexp/: Save results to a file. */