From: Jim Meyering Date: Fri, 23 Feb 1996 16:13:53 +0000 (+0000) Subject: (docolon): Set re_syntax_options to RE_SYNTAX_POSIX_BASIC X-Git-Tag: FILEUTILS-3_12j~67 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=85f9983c1942e77d995c4017b66386253c26f36f;p=thirdparty%2Fcoreutils.git (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. --- diff --git a/src/expr.c b/src/expr.c index 0be997e082..c984279bc5 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);