diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2017-06-07 23:51:10 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2017-06-07 23:51:10 -0700 |
commit | 3420284a02f816d3e5208ea1489c7b6afed6539a (patch) | |
tree | 8d73fdc393f8a3b6737863745d2899665c1c228c /txr.1 | |
parent | de885069bebb4e674b7579b22dbecab0742ba02b (diff) | |
download | txr-3420284a02f816d3e5208ea1489c7b6afed6539a.tar.gz txr-3420284a02f816d3e5208ea1489c7b6afed6539a.tar.bz2 txr-3420284a02f816d3e5208ea1489c7b6afed6539a.zip |
awk macro: fix broken rng.
Bug: rng fails to activate when the to and from condition
are true for the same record.
* share/txr/stdlib/awk.tl (sys:awk-mac-let): Rename the flag-new
gensym holder to flag-act, since it indicates whether the range
is active, either from before or due to being activated by
the current record. A new gensym is added to indicate whether
the range is being deactivated in this record. The inclusive
rng range refers to this variable rather than flag-old.
But a bug emulation is provided to refer to the wrong variable.
* txr.1: Added compatibility note.
Diffstat (limited to 'txr.1')
-rw-r--r-- | txr.1 | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -58234,6 +58234,13 @@ of these version values, the described behaviors are provided if is given an argument which is equal or lower. For instance .code "-C 103" selects the behaviors described below for version 105, but not those for 102. +.IP 177 +A value of 177 or lower causes the emulation of a bug which was present in the +.code rng +awk macro. A range whose start and end condition matched on the same record failed +to activate for that record, even though +.code rng +is inclusive. The behavior is incompatible with POSIX Awk. .IP 174 A value of 174 or lower restores a previous behavior of variable substitution in the |