summaryrefslogtreecommitdiffstats
path: root/txr.1
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2017-01-26 08:49:43 -0800
committerKaz Kylheku <kaz@kylheku.com>2017-01-26 08:49:43 -0800
commit6899c7cd2b6890acd8ef86f4f2301708c6f59c1d (patch)
tree46ad9f1a4fd81e4e44e4c3ce4600681a4cc11b3b /txr.1
parentbe0aa60ca1fda9d6402bec586d60cc49cb870e87 (diff)
downloadtxr-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.111
1 files changed, 11 insertions, 0 deletions
diff --git a/txr.1 b/txr.1
index d7df6f30..c9cbe389 100644
--- a/txr.1
+++ b/txr.1
@@ -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 )