diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2017-01-26 08:49:43 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2017-01-26 08:49:43 -0800 |
commit | 6899c7cd2b6890acd8ef86f4f2301708c6f59c1d (patch) | |
tree | 46ad9f1a4fd81e4e44e4c3ce4600681a4cc11b3b /txr.1 | |
parent | be0aa60ca1fda9d6402bec586d60cc49cb870e87 (diff) | |
download | txr-6899c7cd2b6890acd8ef86f4f2301708c6f59c1d.tar.gz txr-6899c7cd2b6890acd8ef86f4f2301708c6f59c1d.tar.bz2 txr-6899c7cd2b6890acd8ef86f4f2301708c6f59c1d.zip |
awk macro: bind *stdin* to current input stream.
* share/txr/stdlib/awk.tl (sys:awk-state loop): Instead of
using the lexical variable stin, use *stdin*, so that
the standard input stream is re-bound.
* txr.1: Documented binding and scope of *stdin*.
Diffstat (limited to 'txr.1')
-rw-r--r-- | txr.1 | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -42590,6 +42590,17 @@ record (contents of the variable followed by the output record terminator from the variable .codn ors . +While the processing loop in +.code awk +scans an input source, it also binds the special variable +.code *stdin* +to the open stream associated with that source. This binding is +in effect across all ordinary clauses, as well as across the +special clauses +.code :begin-file +and +.codn :end-file . + The following is a description of the special clauses: .RS .meIP (:name << sym ) |