summaryrefslogtreecommitdiff
path: root/test/asset
diff options
context:
space:
mode:
authorRoman Smrž <roman.smrz@seznam.cz>2026-09-04 19:25:09 +0200
committerRoman Smrž <roman.smrz@seznam.cz>2026-09-05 21:41:39 +0200
commita9439b66ad8f7a8f4ba079a47ecfe1e76c2abc4b (patch)
tree7ef225d63462349b8f5708cdceecc9010734e60a /test/asset
parentc2c89cf5308ea5c490a4fe150cffc72ed09c4c1c (diff)
Expression expansion for shell arguments
Changelog: Lists can now be dollar-expanded in the shell interpreter to provide list of shell command arguments.
Diffstat (limited to 'test/asset')
-rw-r--r--test/asset/shell/expansion.et13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/asset/shell/expansion.et b/test/asset/shell/expansion.et
new file mode 100644
index 0000000..050efba
--- /dev/null
+++ b/test/asset/shell/expansion.et
@@ -0,0 +1,13 @@
+test Test:
+ node n
+
+ let str = "some string"
+ let int = 2
+ let num = 4.5
+ let list = [ "a b", "c d", "e", "f" ]
+ let ilist = [ 1 .. 5 ]
+
+ shell on n as sh:
+ echo A $str B $int $num C
+ echo D $list E
+ echo F $ilist G