summaryrefslogtreecommitdiff
path: root/usr.bin/sed
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1998-01-18 22:01:54 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1998-01-18 22:01:54 +0000
commit175c63e41b5c1c5e4b8709416bed5d413b2751ac (patch)
tree68fa00656848a84f5f9250327ee701d0a442bdf5 /usr.bin/sed
parentedb3c62ea3e7cb7e232ec1c61804f4d4dd3c5036 (diff)
Support extended (modern) instead of basic (obsolescent)
regular expressions. hubert.feyrer@rz.uni-regensburg.de
Diffstat (limited to 'usr.bin/sed')
-rw-r--r--usr.bin/sed/compile.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/sed/compile.c b/usr.bin/sed/compile.c
index f8219dc8e9e..2bd088ccda6 100644
--- a/usr.bin/sed/compile.c
+++ b/usr.bin/sed/compile.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: compile.c,v 1.4 1997/11/14 03:59:25 deraadt Exp $ */
+/* $OpenBSD: compile.c,v 1.5 1998/01/18 22:01:53 millert Exp $ */
/*-
* Copyright (c) 1992 Diomidis Spinellis.
@@ -39,7 +39,7 @@
#ifndef lint
/* from: static char sccsid[] = "@(#)compile.c 8.1 (Berkeley) 6/6/93"; */
-static char *rcsid = "$OpenBSD: compile.c,v 1.4 1997/11/14 03:59:25 deraadt Exp $";
+static char *rcsid = "$OpenBSD: compile.c,v 1.5 1998/01/18 22:01:53 millert Exp $";
#endif /* not lint */
#include <sys/types.h>
@@ -427,7 +427,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, REG_EXTENDED)) != 0)
err(COMPILE, "RE error: %s", strregerror(eval, *repp));
if (maxnsub < (*repp)->re_nsub)
maxnsub = (*repp)->re_nsub;