Re: [exim] Doc Query : listextract

Top Pagina
Delete this message
Reply to this message
Auteur: Jeremy Harris
Datum:  
Aan: exim-users
Onderwerp: 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