summaryrefslogtreecommitdiff
path: root/bin/ed
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1998-01-18 22:02:46 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1998-01-18 22:02:46 +0000
commitc43efce6fc2b04394128e57c1d7a1b3babf52315 (patch)
treefa78c21400d5982b6c00394e66e67ad9d5a84a74 /bin/ed
parent175c63e41b5c1c5e4b8709416bed5d413b2751ac (diff)
Support extended (modern) instead of basic (obsolescent) 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 276094b7d73..9d0a5db97f1 100644
--- a/bin/ed/re.c
+++ b/bin/ed/re.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: re.c,v 1.5 1996/12/14 12:17:57 mickey Exp $ */
+/* $OpenBSD: re.c,v 1.6 1998/01/18 22:02:45 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.5 1996/12/14 12:17:57 mickey Exp $";
+static char rcsid[] = "$OpenBSD: re.c,v 1.6 1998/01/18 22:02:45 millert Exp $";
#endif
#endif /* not lint */
@@ -73,7 +73,7 @@ get_compiled_pattern()
return NULL;
}
patlock = 0;
- if ((n = regcomp(exp, exps, 0)) != 0) {
+ if ((n = regcomp(exp, exps, REG_EXTENDED)) != 0) {
regerror(n, exp, errmsg, sizeof errmsg);
free(exp);
return exp = NULL;