diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2022-02-22 20:32:05 +0200 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2022-02-22 20:32:05 +0200 |
commit | d330a2bdc9d6892dc55ce8f5d299196f32ab1003 (patch) | |
tree | f5a95b6ab6d34679192183bad8fee26ddf2ca994 /re.c | |
parent | f8f77e08c471d62bb462db5498f1980c564cdc78 (diff) | |
download | egawk-d330a2bdc9d6892dc55ce8f5d299196f32ab1003.tar.gz egawk-d330a2bdc9d6892dc55ce8f5d299196f32ab1003.tar.bz2 egawk-d330a2bdc9d6892dc55ce8f5d299196f32ab1003.zip |
Enable interval expressions for --traditional. Update docs.
Diffstat (limited to 're.c')
-rw-r--r-- | re.c | 12 |
1 files changed, 9 insertions, 3 deletions
@@ -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); |