summaryrefslogtreecommitdiff
path: root/src/csplit.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2006-04-12 07:14:53 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2006-04-12 07:14:53 +0000
commit2a75bb4ae0a1e7547e4396fe67825133606cf9d9 (patch)
tree9e4d6cfd1f9133fcdba286199f17bfc28817d72d /src/csplit.c
parentf666da6f326316ebb4d55ff257f32492ad10e843 (diff)
downloadcoreutils-2a75bb4ae0a1e7547e4396fe67825133606cf9d9.tar.xz
(extract_regexp): Set re_syntax_options to a
value that is compatible with what POSIX requires.
Diffstat (limited to 'src/csplit.c')
-rw-r--r--src/csplit.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/csplit.c b/src/csplit.c
index 825c9c196..4544a3ed1 100644
--- a/src/csplit.c
+++ b/src/csplit.c
@@ -1121,6 +1121,7 @@ extract_regexp (int argnum, bool ignore, char const *str)
p->re_compiled.allocated = 0;
p->re_compiled.fastmap = p->fastmap;
p->re_compiled.translate = NULL;
+ re_syntax_options = RE_SYNTAX_POSIX_BASIC & ~RE_CONTEXT_INVALID_DUP;
err = re_compile_pattern (str + 1, len, &p->re_compiled);
if (err)
{