mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-19 03:33:43 +03:00
(extract_regexp): Set re_syntax_options to a
value that is compatible with what POSIX requires.
This commit is contained in:
1 parent
f666da6f32
commit
2a75bb4ae0
1 file changed
+1
@@ -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)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user