But, if we use $!nn form for templates, how to tell where variable name stops and then the adjacent literal starts? In templates, there is need to encapsulate variable names from both sides. That is why %% is needed.


--
Pavel Levshin


21.10.2013 16:47, Boylan, James пишет:
I know that in 7.4.4 it is referenced using straight $!nn for local variables 
in script and templates then with %$!nn% in legacy.  It seems like it might be 
workable to keep that consistent. $!nn, $/nn and $.nn in script/templates with 
a legacy support of %$!nn%, %$/nn%, %$.nn%.

That way it is consistent with the expected behavior that people have been 
using, merely expanding to support a larger spectrum of variables. Unless there 
is a specific limitation that requires a change of that functionality.

-- James


-----Original Message-----
From: [email protected] 
[mailto:[email protected]] On Behalf Of Rainer Gerhards
Sent: Monday, October 21, 2013 7:43 AM
To: rsyslog-users
Subject: Re: [rsyslog] A solution to action load balancing

On Mon, Oct 21, 2013 at 2:38 PM, David Lang <[email protected]> wrote:


On Mon, 21 Oct 2013, Rainer Gerhards wrote:

  OK, after a short break (but not really thought out): it probably is
most
useful to support $!, $/, $. in script as we all thought. This means
that we should support %!nnn% %/nnn% and %.nnn% in string templates
as well



_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com/professional-services/
What's up with rsyslog? Follow https://twitter.com/rgerhards
NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad of 
sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T LIKE 
THAT.

Reply via email to