From d330a2bdc9d6892dc55ce8f5d299196f32ab1003 Mon Sep 17 00:00:00 2001 From: "Arnold D. Robbins" Date: Tue, 22 Feb 2022 20:32:05 +0200 Subject: Enable interval expressions for --traditional. Update docs. --- re.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 're.c') diff --git a/re.c b/re.c index fd134727..1e959373 100644 --- a/re.c +++ b/re.c @@ -478,10 +478,16 @@ resetup() /* * Interval expressions are now on by default, as POSIX is - * wide-spread enough that people want it. The do_intervals - * variable remains for use with --traditional. + * wide-spread enough that people want it. + * + * 2/2022: BWK awk has supported interval expressions since + * March 2019, with an important fix added in Januay 2020. + * So we add that support even for --traditional. It's easier to + * do it here than to try to get the GLIBC / GNULIB folks to change + * the definition of RE_SYNTAX_AWK, which likely would cause + * binary compatibility issues. */ - if (do_intervals) + if (do_traditional) syn |= RE_INTERVALS | RE_INVALID_INTERVAL_ORD | RE_NO_BK_BRACES; (void) re_set_syntax(syn); -- cgit v1.2.1