From 85f9983c1942e77d995c4017b66386253c26f36f Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Fri, 23 Feb 1996 16:13:53 +0000 Subject: (docolon): Set re_syntax_options to RE_SYNTAX_POSIX_BASIC so expr's pattern matching uses BASIC (not GNU-extended) REs. Reported by Jim Kingdon. --- src/expr.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/expr.c b/src/expr.c index 0be997e08..c984279bc 100644 --- a/src/expr.c +++ b/src/expr.c @@ -423,6 +423,7 @@ docolon (VALUE *sv, VALUE *pv) re_buffer.allocated = 2 * len; re_buffer.buffer = (unsigned char *) xmalloc (re_buffer.allocated); re_buffer.translate = 0; + re_syntax_options = RE_SYNTAX_POSIX_BASIC; errmsg = re_compile_pattern (pv->u.s, len, &re_buffer); if (errmsg) error (2, 0, "%s", errmsg); -- cgit v1.2.3-70-g09d2