summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1996-02-23 16:13:53 +0000
committerJim Meyering <jim@meyering.net>1996-02-23 16:13:53 +0000
commit85f9983c1942e77d995c4017b66386253c26f36f (patch)
tree1f005fabf3cea254e24e5905be0b97f61a5fc47c
parent9cb56e2980b6ee30d982c18a84ea7723e7849318 (diff)
downloadcoreutils-85f9983c1942e77d995c4017b66386253c26f36f.tar.xz
(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.
-rw-r--r--src/expr.c1
1 files changed, 1 insertions, 0 deletions
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);