diff options
Diffstat (limited to 'unit-tests')
-rw-r--r-- | unit-tests/test/script/parser/pipe-expr.test | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/unit-tests/test/script/parser/pipe-expr.test b/unit-tests/test/script/parser/pipe-expr.test index 5a6e6ab..74077e7 100644 --- a/unit-tests/test/script/parser/pipe-expr.test +++ b/unit-tests/test/script/parser/pipe-expr.test @@ -30,6 +30,44 @@ EOI cmd1 | cmd2 == 1 && cmd3 != 0 | cmd4 EOO +: here-doc +: +$* <<EOI >>EOO +cmd1 <<EOI1 | cmd2 >>EOO2 && cmd3 <<EOI3 2>&1 | cmd4 2>>EOE4 >>EOO4 +input +one +EOI1 +ouput +two +EOO2 +input +three +EOI3 +error +four +EOE4 +output +four +EOO4 +EOI +cmd1 <<EOI1 | cmd2 >>EOO2 && cmd3 <<EOI3 2>&1 | cmd4 >>EOO4 2>>EOE4 +input +one +EOI1 +ouput +two +EOO2 +input +three +EOI3 +output +four +EOO4 +error +four +EOE4 +EOO + : leading : $* <<EOI 2>>EOE != 0 |