diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2016-09-25 07:06:41 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2016-09-25 07:06:41 -0700 |
commit | 0ad39c713f1d0239abda6cece563c0964a1ea5e0 (patch) | |
tree | 75fb44f71fb1cd79f17be1743633175ddcfeed04 /txr.1 | |
parent | 0720e906157d8e51ada26b2bc81ce26a262c8964 (diff) | |
download | txr-0ad39c713f1d0239abda6cece563c0964a1ea5e0.tar.gz txr-0ad39c713f1d0239abda6cece563c0964a1ea5e0.tar.bz2 txr-0ad39c713f1d0239abda6cece563c0964a1ea5e0.zip |
awk macro: handle dynamic changes in rs variable.
* awk.tl (sys:awk-state loop): The loop now notices
when rs or krs changes and switches to a new
record-adapter or to the raw stream as necessary.
* txr.1: Notes added about changes to rs and krs.
Diffstat (limited to 'txr.1')
-rw-r--r-- | txr.1 | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -38563,6 +38563,12 @@ If a match for the record separator occurs at the end of the stream, it is not considered to delimit an empty record, but acts as the terminator for the previous record. +When a new value is assigned to +.codn rs , +it has no effect on the most recently scanned and delimited record which is +still current, or previous records. The new value applies to the next, not yet +read record. + .coNP Variable @ krs .desc The awk variable @@ -38575,6 +38581,12 @@ by the pattern in the .code rs variable is retained as part of the preceding record rather than removed. +When a new value is assigned to +.codn krs , +it has no effect on the most recently scanned and delimited record which is +still current, or previous records. The new value applies to the next, not yet +read record. + .coNP Variables @ fs and @ ft .desc The awk variable |