summaryrefslogtreecommitdiffstats
path: root/txr.1
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2011-09-23 14:49:00 -0700
committerKaz Kylheku <kaz@kylheku.com>2011-09-23 14:49:00 -0700
commitd11481b8cd38d63d21d50fb1b7fc9c49a7f21c0d (patch)
tree7dae5806116bab644503c2b29b1f4c8824d52368 /txr.1
parentb8b81379badbe9f5d91a10e521ac2985b5da4979 (diff)
downloadtxr-d11481b8cd38d63d21d50fb1b7fc9c49a7f21c0d.tar.gz
txr-d11481b8cd38d63d21d50fb1b7fc9c49a7f21c0d.tar.bz2
txr-d11481b8cd38d63d21d50fb1b7fc9c49a7f21c0d.zip
* match.c, parser.y: Support for old output syntax removed.
Leading :nothrow with trailing material is an error now. * txr.1: Updated. Made note of errors in pipes being asynchronous.
Diffstat (limited to 'txr.1')
-rw-r--r--txr.118
1 files changed, 6 insertions, 12 deletions
diff --git a/txr.1 b/txr.1
index 78b109cd..82d128e3 100644
--- a/txr.1
+++ b/txr.1
@@ -2280,27 +2280,21 @@ The syntax of the @(output) directive is:
.
@(end)
-An obsolescent syntax is also supported:
-
- @(output)...optional destination...
- .
- . one or more output directives or lines
- .
- @(end)
-
The optional destination is a filename, the special name, - which
redirects to standard output, or a shell command preceded by the ! symbol.
In the first form, the destination may be specified as a variable
which holds text, a string literal or a quasiliteral
-In the second obsolescent form, the material to the right of @(output)
-is query text which may contain variables.
-
-The new syntax throws an exception if the output destination
+The syntax throws an exception if the output destination
cannot be opened, unless the :nothrow keyword is present, in which
case the situation is treated as a match failure. The old syntax throws an
exception.
+Note that since command pipes are processes that report errors
+asynchronously, a failing command will not throw an immediate exception that
+can be suppressed with :nothrow. This is for synchronous errors, like
+trying to open a destination file, but not having permissions, etc.
+
.SS Output Text
Text in an output clause is not matched against anything, but is output