summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bin/expr/expr.y2
1 files changed, 1 insertions, 1 deletions
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);