diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2016-10-22 16:10:38 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2016-11-04 09:26:34 +0200 |
commit | 132c1f2bb19c92722274c69a190c2f71b801b602 (patch) | |
tree | ce141b9b866582966262d01777dbf7e9e01e324e /doc/testscript.cli | |
parent | 31e16a7413813293e3cccb6799eaa08b7af5af4e (diff) |
Add support for no-newline redirects in testscript
The no-newline operators are '<:', '>:', '<<:', and '>>:'.
Diffstat (limited to 'doc/testscript.cli')
-rw-r--r-- | doc/testscript.cli | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/doc/testscript.cli b/doc/testscript.cli index b12ca98..825fde0 100644 --- a/doc/testscript.cli +++ b/doc/testscript.cli @@ -719,20 +719,22 @@ test-line: command-line: command -command: <path>(' '+(<arg>|stdin|stdout|stderr))* command-exit? +command: <path>(' '+(<arg>|redirect))* command-exit? *here-document -stdin: '0'?('<!'|\ - '<' <text>|\ - '<<' <here-end>) +redirect: stdin|stdout|stderr -stdout: '1'?('>!'|\ - '>' <text>|\ - '>>' <here-end>) +stdin: '0'?(in-redirect) +stdout: '1'?(out-redirect) +stderr: '2'(out-redirect) -stderr: '2'('>!'|\ - '>' <text>|\ - '>>' <here-end>) +in-redirect: '<!'|\ + ('<'|'<:') <text>|\ + ('<<'|'<<:') <here-end> + +out-redirect: '>!'|\ + ('>'|'>:') <text>|\ + ('>>'|'>>:') <here-end> command-exit: ('=='|'!=') <exit-status> |