summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1998-01-21 03:51:51 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1998-01-21 03:51:51 +0000
commit3faec65993089034d4b6a639af0424b9f8b25dce (patch)
treeaa7a965781ed402d419425ae83e4c9cbcf49a484 /usr.bin
parent8a2ec42180fb11a937a82cb373eb5158f74e1ab8 (diff)
Back out last change. ed and sed should not use extended regular expressions.
Diffstat (limited to 'usr.bin')
-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 2bd088ccda6..4838d5b26bf 100644
--- a/usr.bin/sed/compile.c
+++ b/usr.bin/sed/compile.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: compile.c,v 1.5 1998/01/18 22:01:53 millert Exp $ */
+/* $OpenBSD: compile.c,v 1.6 1998/01/21 03:51:49 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.5 1998/01/18 22:01:53 millert Exp $";
+static char *rcsid = "$OpenBSD: compile.c,v 1.6 1998/01/21 03:51:49 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, REG_EXTENDED)) != 0)
+ if (p && (eval = regcomp(*repp, re, 0)) != 0)
err(COMPILE, "RE error: %s", strregerror(eval, *repp));
if (maxnsub < (*repp)->re_nsub)
maxnsub = (*repp)->re_nsub;