From a9439b66ad8f7a8f4ba079a47ecfe1e76c2abc4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roman=20Smr=C5=BE?= Date: Fri, 4 Sep 2026 19:25:09 +0200 Subject: Expression expansion for shell arguments Changelog: Lists can now be dollar-expanded in the shell interpreter to provide list of shell command arguments. --- test/script/shell.et | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'test/script') diff --git a/test/script/shell.et b/test/script/shell.et index 3384353..4dca4a2 100644 --- a/test/script/shell.et +++ b/test/script/shell.et @@ -180,3 +180,20 @@ test ShellLogic: expect /run-test-result NegateNothing failed/ expect /run-done 1 0 0 1/ flush + + +test ShellVariableExpansion: + spawn as p + with p: + send "load ${scripts.path}/expansion.et" + local: + expect /(load-.*)/ capture done + guard (done == "load-done") + + send "run Test" + expect /child-stdout sh A some string B 2 4.5 C/ + expect /child-stdout sh D a b c d e f E/ + expect /child-stdout sh F 1 2 3 4 5 G/ + expect /run-test-result Test done/ + expect /run-done 1 1 0 0/ + flush -- cgit v1.2.3