]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(extract_regexp): Set re_syntax_options to a
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 12 Apr 2006 07:14:53 +0000 (07:14 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 12 Apr 2006 07:14:53 +0000 (07:14 +0000)
value that is compatible with what POSIX requires.

src/csplit.c

index 825c9c1960d66adea758b7bb665aea93fc56a25d..4544a3ed109492372f67ff45a5c95ec1d5de8a8a 100644 (file)
@@ -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)
     {