From: Jim Meyering Date: Sat, 2 Mar 1996 02:45:20 +0000 (+0000) Subject: (docolon): Don't use deceptively-named RE_SYNTAX_POSIX_BASIC -- it recognizes X-Git-Tag: FILEUTILS-3_12j~35 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3d2a9041f9f5d24567ede5c26ace274c864eeb76;p=thirdparty%2Fcoreutils.git (docolon): Don't use deceptively-named RE_SYNTAX_POSIX_BASIC -- it recognizes non-BRE \?, \+, and \|. Instead, use RE_SYNTAX_POSIX_MINIMAL_BASIC. --- diff --git a/src/expr.c b/src/expr.c index 2f1970da8a..f6e13aa215 100644 --- a/src/expr.c +++ b/src/expr.c @@ -423,7 +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; + re_syntax_options = RE_SYNTAX_POSIX_MINIMAL_BASIC; errmsg = re_compile_pattern (pv->u.s, len, &re_buffer); if (errmsg) error (2, 0, "%s", errmsg);