diff options
Diffstat (limited to 'unit-tests/test/script/lexer')
-rw-r--r-- | unit-tests/test/script/lexer/command-line.test | 12 | ||||
-rw-r--r-- | unit-tests/test/script/lexer/script-line.test | 8 |
2 files changed, 20 insertions, 0 deletions
diff --git a/unit-tests/test/script/lexer/command-line.test b/unit-tests/test/script/lexer/command-line.test index 765b59a..4a71d46 100644 --- a/unit-tests/test/script/lexer/command-line.test +++ b/unit-tests/test/script/lexer/command-line.test @@ -40,6 +40,18 @@ $* <:"1 >-" >>EOO # arg-out-null-redirect >- EOO +$* <:"1>&2" >>EOO # merge-redirect +'1' +>& +'2' +EOO + +$* <:"1 >&2" >>EOO # arg-merge-redirect +'1 ' +>& +'2' +EOO + $* <:"0<a b" >>EOO # in-str-redirect '0' < diff --git a/unit-tests/test/script/lexer/script-line.test b/unit-tests/test/script/lexer/script-line.test index a217591..36d440c 100644 --- a/unit-tests/test/script/lexer/script-line.test +++ b/unit-tests/test/script/lexer/script-line.test @@ -33,6 +33,14 @@ $* <"cmd <- 1>-" >>EOO # null-redirect <newline> EOO +$* <"cmd 1>&2" >>EOO # merge-redirect +'cmd' +'1' +>& +'2' +<newline> +EOO + $* <"cmd <a 1>b" >>EOO # str-redirect 'cmd' < |