summaryrefslogtreecommitdiff
path: root/test
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
parentde768ba0626a60f094593c6e43fc808fe0e898b7 (diff)
downloadexim4-a3d3e7ef81a649d2bbd6599fc561cf22c6875e70.tar.gz
Fix ${filter } for conditions modifying $value
Diffstat (limited to 'test')
-rw-r--r--test/scripts/0000-Basic/00022
-rw-r--r--test/stdout/00022
2 files changed, 4 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}}
diff --git a/test/stdout/0002 b/test/stdout/0002
index 74219a6f3..9232089f6 100644
--- a/test/stdout/0002
+++ b/test/stdout/0002
@@ -79,6 +79,8 @@
> filter: a'c
> filter: ''a' ''c
> filter: ""
+> # check operation when the condition modifies the 'value' variable
+> E
>
> map: ""
> map: a:b:c