aboutsummaryrefslogtreecommitdiffstats
path: root/usr.bin/sed/compile.c
diff options
context:
space:
mode:
authorAlfred Perlstein <alfred@FreeBSD.org>2002-01-30 20:21:18 +0000
committerAlfred Perlstein <alfred@FreeBSD.org>2002-01-30 20:21:18 +0000
commitf0843112af9ba486ec10c280a06fb0e6695020ee (patch)
tree28aa7fd401e9a85ca350e8188a38d68807e83015 /usr.bin/sed/compile.c
parent2e031e8eba932d1e2d14bcbc6a839ff325911d66 (diff)
downloadsrc-f0843112af9ba486ec10c280a06fb0e6695020ee.tar.gz
src-f0843112af9ba486ec10c280a06fb0e6695020ee.zip
Backport sed -E support (extended regex support).
Submitted by: Dan Nelson <dnelson@allantgroup.com>
Notes
Notes: svn path=/stable/3/; revision=89998
Diffstat (limited to 'usr.bin/sed/compile.c')
-rw-r--r--usr.bin/sed/compile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/sed/compile.c b/usr.bin/sed/compile.c
index 136f56ce1197..0fb5ccae6d59 100644
--- a/usr.bin/sed/compile.c
+++ b/usr.bin/sed/compile.c
@@ -435,7 +435,7 @@ compile_re(p, repp)
return (p);
}
*repp = xmalloc(sizeof(regex_t));
- if (p && (eval = regcomp(*repp, re, 0)) != 0)
+ if (p && (eval = regcomp(*repp, re, rflags)) != 0)
errx(1, "%lu: %s: RE error: %s",
linenum, fname, strregerror(eval, *repp));
if (maxnsub < (*repp)->re_nsub)