From 5b502a0ebc714bac3e679334c30faaf12e295cfb Mon Sep 17 00:00:00 2001 From: Samuel Holland Date: Fri, 5 Jul 2019 22:15:43 -0500 Subject: bin/expr: POSIX BRE is default and has no flag --- bin/expr/expr.y | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/expr/expr.y b/bin/expr/expr.y index e9b6212..2760888 100644 --- a/bin/expr/expr.y +++ b/bin/expr/expr.y @@ -105,7 +105,7 @@ expr: item { $$ = $1; } int eval; /* compile regular expression */ - if ((eval = regcomp(&rp, $3, REG_BASIC)) != 0) { + if ((eval = regcomp(&rp, $3, 0)) != 0) { char errbuf[256]; (void)regerror(eval, &rp, errbuf, sizeof(errbuf)); yyerror("%s", errbuf); -- cgit v1.2.3-70-g09d2