diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2011-09-23 14:49:00 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2011-09-23 14:49:00 -0700 |
commit | d11481b8cd38d63d21d50fb1b7fc9c49a7f21c0d (patch) | |
tree | 7dae5806116bab644503c2b29b1f4c8824d52368 /txr.1 | |
parent | b8b81379badbe9f5d91a10e521ac2985b5da4979 (diff) | |
download | txr-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.1 | 18 |
1 files changed, 6 insertions, 12 deletions
@@ -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 |