Double escaping when using $ARGS1$?

Marc Powell marc at ena.com
Wed May 20 15:02:19 CEST 2009


On May 19, 2009, at 7:09 PM, Ton Voon wrote:

> Is this correct behaviour? I think this is wrong, or at least
> inconsistent.

It's documented as being this way to allow you to escape '!' in  
command arguments... I can see that it makes sense because you're  
adding another layer of substitution above the shell and the \-escape  
handling is probably not '!' specific.

http://nagios.sourceforge.net/docs/3_0/macros.html

"Tip: If you need to pass bang (!) characters in your command  
arguments, you can do so by escaping them with a backslash (\). If you  
need to include backslashes in your command arguments, they should  
also be escaped with a backslash. "

--
Marc

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables 
unlimited royalty-free distribution of the report engine 
for externally facing server and web deployment. 
http://p.sf.net/sfu/businessobjects




More information about the Developers mailing list