Re: [exim] expanding variables in macro name

Góra strony
Delete this message
Reply to this message
Autor: Ian Eiloart
Data:  
Dla: Artjom Gora, exim-users
Temat: Re: [exim] expanding variables in macro name


--On 23 November 2010 19:54:57 +0200 Artjom Gora <dr.tibibo@???>
wrote:

> Hello, exim-users!
> Is there are any possibility to expand an arbitrary variable into the
> macro name?
> For instance, Ihave several macros defined lke this
> MACRO1=some data
> MACRO2=another data
> MACRO3=some other data
>
> then have acl like this
>
> warn set acl_c1 = ${some expansion}
>
> where acl_c1={1..3}
>
> Can I use my macros in the follow way?
>
> MACRO${acl_c1}


I think that won't work, because MACRO expansions occur first. Why not have
the expansion resolve to MACRO1, MACRO2, or MACRO3?


--
Ian Eiloart
IT Services, University of Sussex
01273-873148 x3148
For new support requests, see http://www.sussex.ac.uk/its/help/