Author: Jeremy Harris Date: To: exim-users Subject: Re: [exim] Doc Query : listextract
On 17/09/15 04:07, Always Learning wrote: > exim.org/exim-html-current/doc/html/spec_html/ch-string_expansions.html
>
>
>> ${listextract{-3}{<, x,42,99,& Mailer,,/bin/bash}{result: $value}}
>>
>> yields “result: 99”.
>
> If the right-most data in a punctuated field is labelled -1, then
> shouldn't the -3 yield '& Mailer' ?
I get 42, not 99. You found a docs bug.
But your "-1"th field runs from the "&" onwards,
because of the rules on doubled list separators.
You'll be better off with extract, for this job.
--
Cheers,
Jeremy