Stuart Remphrey wrote:
> Hi Phil,
>
> I noticed some variable expansion code a couple of days ago
> (in ipf/tools/ipf.c?), and there's "assign:" and "assignment:"
> expansions in all of the ipf/tools/ip*_y.y yacc files:
>
> ipf_y.y
> ipmon_y.y
> ipnat_y.y
> ippool_y.y
> ipscan_y.y
>
> Looks like the ip*.conf file macro/variable definition syntax is:
>
>     variable = string ;
>
> and to expand/reference a macro/variable value:
>
>     $variable
>   

You can also use ${variable}, too.


> Similar to basic shell environment variable usage;
> no parameters or M4-ness, and I don't recall noticing
> whether recursive expansions would work or not,
> but I assume they would - I _think_ the resulting
> strings were rescanned.
>   

The above is all true.
There is a limit on the recursion (to avoid mistakes) but it should be high
enough to allow meaningful use.

Darren

Reply via email to