1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-04-12 06:57:33 +02:00

(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.
This commit is contained in:
Jim Meyering
1996-02-23 16:13:53 +00:00
parent 9cb56e2980
commit 85f9983c19

View File

@@ -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);