summaryrefslogtreecommitdiff
path: root/bin/ed
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 /bin/ed
parent8a2ec42180fb11a937a82cb373eb5158f74e1ab8 (diff)
Back out last change. ed and sed should not use extended regular expressions.
Diffstat (limited to 'bin/ed')
-rw-r--r--bin/ed/re.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/ed/re.c b/bin/ed/re.c
index 9d0a5db97f1..f30b1ea07e1 100644
--- a/bin/ed/re.c
+++ b/bin/ed/re.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: re.c,v 1.6 1998/01/18 22:02:45 millert Exp $ */
+/* $OpenBSD: re.c,v 1.7 1998/01/21 03:51:50 millert Exp $ */
/* $NetBSD: re.c,v 1.14 1995/03/21 09:04:48 cgd Exp $ */
/* re.c: This file contains the regular expression interface routines for
@@ -33,7 +33,7 @@
#if 0
static char *rcsid = "@(#)re.c,v 1.6 1994/02/01 00:34:43 alm Exp";
#else
-static char rcsid[] = "$OpenBSD: re.c,v 1.6 1998/01/18 22:02:45 millert Exp $";
+static char rcsid[] = "$OpenBSD: re.c,v 1.7 1998/01/21 03:51:50 millert Exp $";
#endif
#endif /* not lint */
@@ -73,7 +73,7 @@ get_compiled_pattern()
return NULL;
}
patlock = 0;
- if ((n = regcomp(exp, exps, REG_EXTENDED)) != 0) {
+ if ((n = regcomp(exp, exps, 0)) != 0) {
regerror(n, exp, errmsg, sizeof errmsg);
free(exp);
return exp = NULL;