From a3d3e7ef81a649d2bbd6599fc561cf22c6875e70 Mon Sep 17 00:00:00 2001 From: Jeremy Harris Date: Thu, 22 Sep 2022 15:09:07 +0100 Subject: Fix ${filter } for conditions modifying $value --- test/scripts/0000-Basic/0002 | 2 ++ test/stdout/0002 | 2 ++ 2 files changed, 4 insertions(+) (limited to 'test') 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 -- cgit v1.2.3