summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Holland <samuel@sholland.org>2019-07-05 22:15:43 -0500
committerSamuel Holland <samuel@sholland.org>2019-07-05 22:32:22 -0500
commit5b502a0ebc714bac3e679334c30faaf12e295cfb (patch)
treebcf92c377b807fa2dab3e5d4649cee59ee79365a
parentcba4ab803b4e925520e950d704cc9821b68eef5c (diff)
downloaduserland-5b502a0ebc714bac3e679334c30faaf12e295cfb.tar.gz
userland-5b502a0ebc714bac3e679334c30faaf12e295cfb.tar.bz2
userland-5b502a0ebc714bac3e679334c30faaf12e295cfb.tar.xz
userland-5b502a0ebc714bac3e679334c30faaf12e295cfb.zip
bin/expr: POSIX BRE is default and has no flag
-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);