summaryrefslogtreecommitdiff
path: root/lib/libc/regex/regcomp.c
diff options
context:
space:
mode:
authorKyle Evans <kevans@FreeBSD.org>2020-12-05 03:13:47 +0000
committerKyle Evans <kevans@FreeBSD.org>2020-12-05 03:13:47 +0000
commitca53e5aedfebcc1b4091b68e01b2d5cae923f85e (patch)
tree92a4795df6ef937264cff3b82c0d24bdb8b6064c /lib/libc/regex/regcomp.c
parent7518fb346fe9603f99d2406a073b30fb8e4a270c (diff)
Notes
Diffstat (limited to 'lib/libc/regex/regcomp.c')
-rw-r--r--lib/libc/regex/regcomp.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/libc/regex/regcomp.c b/lib/libc/regex/regcomp.c
index 527d0cd3cb42..fd44fd60cc65 100644
--- a/lib/libc/regex/regcomp.c
+++ b/lib/libc/regex/regcomp.c
@@ -480,6 +480,12 @@ p_ere_exp(struct parse *p, struct branchc *bc)
if (p->gnuext) {
handled = 1;
switch (wc) {
+ case '`':
+ EMIT(OBOS, 0);
+ break;
+ case '\'':
+ EMIT(OEOS, 0);
+ break;
case 'W':
case 'w':
case 'S':
@@ -833,6 +839,12 @@ p_simp_re(struct parse *p, struct branchc *bc)
if (p->gnuext) {
handled = true;
switch (c) {
+ case BACKSL|'`':
+ EMIT(OBOS, 0);
+ break;
+ case BACKSL|'\'':
+ EMIT(OEOS, 0);
+ break;
case BACKSL|'W':
case BACKSL|'w':
case BACKSL|'S':
@@ -1878,6 +1890,8 @@ findmust(struct parse *p, struct re_guts *g)
case OEOW:
case OBOL:
case OEOL:
+ case OBOS:
+ case OEOS:
case O_QUEST:
case O_CH:
case OEND: