Am Donnerstag, 23. Juli 2015 schrieb Chris Lajoie :

> On 07/23/2015 01:25 PM, Michael Friedrich wrote:
>
>> Am Donnerstag, 23. Juli 2015 schrieb Zachary McGibbon :
>>
>>     I am trying to setup a constant for a SNMP community that has a $
>>     (dollar sign) at the beginning of the community.  I have tried
>>     added single quotes around the community within the double quotes,
>>     and also tried escaping the dollar sign with a \ but it doesn't work.
>>
>>     Anyone have an idea how to do this besides changing the community?
>>
>>
>> Same as it was with 1.x - escape $ with an additional dollar char.
>>
>
> Is there a reason it must be this way? Putting $$ in your string to get a
> single $ is rather counter-intuitive IMO. I realize the macro expansion
> uses them as delimiters but it wouldn't be terribly difficult to "do the
> right thing".


Send in your patch including unit tests for all occasions please. I don't
think it is that easy.

Kind regards,
Michael



>
> Chris
> _______________________________________________
> icinga-users mailing list
> [email protected]
> https://lists.icinga.org/mailman/listinfo/icinga-users
>
_______________________________________________
icinga-users mailing list
[email protected]
https://lists.icinga.org/mailman/listinfo/icinga-users

Reply via email to