aboutsummaryrefslogtreecommitdiffstats
path: root/re.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2022-02-22 20:36:31 +0200
committerArnold D. Robbins <arnold@skeeve.com>2022-02-22 20:36:31 +0200
commitcbe60ef06e7394db11170d19f900b023142c7431 (patch)
treee3e3d892764e05080ca75798b268969212b091c5 /re.c
parentd43ef1c772bdb5993138aed523e058664594f3e6 (diff)
parentd330a2bdc9d6892dc55ce8f5d299196f32ab1003 (diff)
downloadegawk-cbe60ef06e7394db11170d19f900b023142c7431.tar.gz
egawk-cbe60ef06e7394db11170d19f900b023142c7431.tar.bz2
egawk-cbe60ef06e7394db11170d19f900b023142c7431.zip
Merge branch 'master' into feature/readall
Diffstat (limited to 're.c')
-rw-r--r--re.c12
1 files changed, 9 insertions, 3 deletions
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);