From a8f93733a9d2df0859d585a11bdd39762f3c37a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roman=20Smr=C5=BE?= Date: Sat, 5 Sep 2026 08:47:43 +0200 Subject: Expression expansion for shell command --- test/asset/shell/expansion.et | 6 ++++++ test/script/shell.et | 3 +++ 2 files changed, 9 insertions(+) (limited to 'test') diff --git a/test/asset/shell/expansion.et b/test/asset/shell/expansion.et index 050efba..3f318ab 100644 --- a/test/asset/shell/expansion.et +++ b/test/asset/shell/expansion.et @@ -6,8 +6,14 @@ test Test: let num = 4.5 let list = [ "a b", "c d", "e", "f" ] let ilist = [ 1 .. 5 ] + let cmd = "echo" + let cmdlist = [ "echo", "w", "x y", " z " ] + let special = [ "<", ">", "| &", ";" ] shell on n as sh: echo A $str B $int $num C echo D $list E echo F $ilist G + $cmd H I + $cmdlist J + $cmdlist K $ilist L $int M $special N diff --git a/test/script/shell.et b/test/script/shell.et index 4dca4a2..36eaff7 100644 --- a/test/script/shell.et +++ b/test/script/shell.et @@ -194,6 +194,9 @@ test ShellVariableExpansion: 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 /child-stdout sh H I/ + expect /child-stdout sh w x y z J/ + expect /child-stdout sh w x y z K 1 2 3 4 5 L 2 M < > \| \& \; N/ expect /run-test-result Test done/ expect /run-done 1 1 0 0/ flush -- cgit v1.2.3