diff options
Diffstat (limited to 'doc')
-rw-r--r-- | doc/testscript.cli | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/doc/testscript.cli b/doc/testscript.cli index 9a137eb..4586432 100644 --- a/doc/testscript.cli +++ b/doc/testscript.cli @@ -733,7 +733,7 @@ setup-line: '+' command teardown-line: '-' command test-line: command -command: <path>(' '+(<arg>|redirect))* command-exit? +command: <path>(' '+(<arg>|redirect|cleanup))* command-exit? *here-document redirect: stdin|stdout|stderr @@ -745,12 +745,17 @@ stderr: '2'(out-redirect) in-redirect: '<-'|\ '<+'|\ ('<'|'<:') <text>|\ - ('<<'|'<<:') <here-end> + ('<<'|'<<:') <here-end>|\ + '<<<' <file> out-redirect: '>-'|\ '>+'|\ + '>&' ('1'|'2')|\ ('>'|'>:') <text>|\ - ('>>'|'>>:') <here-end> + ('>>'|'>>:') <here-end>|\ + ('>>>'|'>>>&') <file> + +cleanup: '&' (<file>|<dir>) command-exit: ('=='|'!=') <exit-status> @@ -771,6 +776,10 @@ $* 2 >! $* a1>! \ +In merge redirects the left-hand-side descriptor (implied or explicit) must +not be the same as the right-hand-side. Having both merge redirects at the +same time is illegal. + Here-line is like double-quoted string but recognizes newlines. \ |