From 132c1f2bb19c92722274c69a190c2f71b801b602 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sat, 22 Oct 2016 16:10:38 +0200 Subject: Add support for no-newline redirects in testscript The no-newline operators are '<:', '>:', '<<:', and '>>:'. --- doc/testscript.cli | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) (limited to 'doc/testscript.cli') 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: (' '+(|stdin|stdout|stderr))* command-exit? +command: (' '+(|redirect))* command-exit? *here-document -stdin: '0'?('|\ - '<<' ) +redirect: stdin|stdout|stderr -stdout: '1'?('>!'|\ - '>' |\ - '>>' ) +stdin: '0'?(in-redirect) +stdout: '1'?(out-redirect) +stderr: '2'(out-redirect) -stderr: '2'('>!'|\ - '>' |\ - '>>' ) +in-redirect: '|\ + ('<<'|'<<:') + +out-redirect: '>!'|\ + ('>'|'>:') |\ + ('>>'|'>>:') command-exit: ('=='|'!=') -- cgit v1.1