summaryrefslogtreecommitdiffstats
path: root/txr.1
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2023-05-24 06:48:18 -0700
committerKaz Kylheku <kaz@kylheku.com>2023-05-24 06:48:18 -0700
commitb4f23d86dd71504405f2f26278941dd8325c14ab (patch)
treef25ac7d6f3493f63b34d878e68ca3494732c0839 /txr.1
parent8c249e7aa60489b353658c934b0668a045d7fa0c (diff)
downloadtxr-b4f23d86dd71504405f2f26278941dd8325c14ab.tar.gz
txr-b4f23d86dd71504405f2f26278941dd8325c14ab.tar.bz2
txr-b4f23d86dd71504405f2f26278941dd8325c14ab.zip
awk: widen scope of redirection macros.
This change makes it possible to use the redirection macros like -> and ->> everywhere in the awk macro, including the init-forms of the :let clause. * stdlib/awk.tl (sys:awk-mac-let-outer): New macro. (sys:awk-mac-let): Move redirection macros into awk-mac-let-outer. (awk): Rearrange the order of wrapping. We split the let so the awk-retval and aws-sym are bound outermost. Then we have the outer macros that provide the redirection operators. Then the application-defined lets inside of that. * txr.1: Documented wide scope of redirection macros.
Diffstat (limited to 'txr.1')
-rw-r--r--txr.18
1 files changed, 8 insertions, 0 deletions
diff --git a/txr.1 b/txr.1
index b18b529f..f1d5d6ea 100644
--- a/txr.1
+++ b/txr.1
@@ -69716,6 +69716,14 @@ or
string, direction and type, a new stream is not opened; rather, the
previously associated stream is used.
+The scope of these macros is the entire containing
+.code awk
+form; they may be used in the
+.metn init-form s
+of the
+.code :let
+clause.
+
The
.code ->
macro indicates that the file named