summaryrefslogtreecommitdiff
path: root/test/scripts
diff options
context:
space:
mode:
authorJeremy Harris <jgh146exb@wizmail.org>2022-09-22 15:09:07 +0100
committerJeremy Harris <jgh146exb@wizmail.org>2022-09-22 15:42:58 +0100
commita3d3e7ef81a649d2bbd6599fc561cf22c6875e70 (patch)
treeb6f111884c55693b815a2aca2abbfeba7c778e17 /test/scripts
parentde768ba0626a60f094593c6e43fc808fe0e898b7 (diff)
Fix ${filter } for conditions modifying $value
Diffstat (limited to 'test/scripts')
-rw-r--r--test/scripts/0000-Basic/00022
1 files changed, 2 insertions, 0 deletions
diff --git a/test/scripts/0000-Basic/0002 b/test/scripts/0000-Basic/0002
index d169518b6..898f3b6bc 100644
--- a/test/scripts/0000-Basic/0002
+++ b/test/scripts/0000-Basic/0002
@@ -90,6 +90,8 @@ filter: ${filter{a:b:c}{!eq{$item}{b}}}
filter: ${filter{<' a'b'c}{!eq{$item}{b}}}
filter: ${filter{<' ''a'b' ''c}{!eq{$item}{b}}}
filter: "${filter{}{!eq{$item}{b}}}"
+# check operation when the condition modifies the 'value' variable
+${filter {E} {inlisti{$item}{ e }}}
map: "${map{}{$item}}"
map: ${map{a:b:c}{$item}}