[exim-dev] [Bug 3024] New: string expansion error in functio…

Top Pagina
Delete this message
Reply to this message
Auteur: Exim Bugzilla
Datum:  
Aan: exim-dev
Onderwerp: [exim-dev] [Bug 3024] New: string expansion error in function reduce combined with inlisti function
https://bugs.exim.org/show_bug.cgi?id=3024

            Bug ID: 3024
           Summary: string expansion error in function reduce combined
                    with inlisti function
           Product: Exim
           Version: 4.96+
          Hardware: x86
               URL: https://bugs.debian.org/1051713
                OS: Linux
            Status: NEW
          Severity: bug
          Priority: medium
         Component: String expansion
          Assignee: unallocated@???
          Reporter: eximusers@???
                CC: exim-dev@???

Hello,

this is a copy of Debian bugreport 1051713. There was a behavior change in
string expansion.

Given 
exim -be '${reduce {<\n 1.1.1.1\n2.2.2.2\n3.3.3.3\n4.4.4.4\n4.4.4.4\n}{}{${if
!inlisti{$item}{<\n $value}{$value$item\n}{$value}}}}'

exim up to and including 4.95 returned
1.1.1.1
2.2.2.2
3.3.3.3
4.4.4.4

where as newer versions (4.96 and 4.97 rc0) return
4.4.4.4

I cannot wrap my head around reduce expansion right now but the original bug
submitter explained that the original behavior was the right one ("last 4.4.4.4
matches in list and the reduced list is the output  (double 4.4.4.4 removed)")

cu Andreas

-- 
You are receiving this mail because:
You are on the CC list for the bug.


--
## subscription configuration (requires account):
## https://lists.exim.org/mailman3/postorius/lists/exim-dev.lists.exim.org/
## unsubscribe (doesn't require an account):
## exim-dev-unsubscribe@???
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/