Double escaping in $ARGx$

Thomas Guyot-Sionnest dermoth at aei.ca
Fri Jul 31 17:52:46 CEST 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Ethan Galstad wrote:
> Ton Voon wrote:
>> Hi!
>>
>> I've raised a bug report in Mantis re: double escaping: http://tracker.nagios.org/view.php?id=56
>>
>> I'm convinced this is bad behaviour, but want some confirmation  
>> (Ethan? Andreas?) that this is correct action before I spend the time  
>> in making changes, especially as it is likely to break existing  
>> configurations too.
>>
>> Comments?
>>
>> Ton
> 
> I believe this behavior was requested by users quite a while back.
> Changing it will likely break many configurations.  Better to make sure
> the current behavior is well documented, than change it I think...

A bit off-topic, but I believe it would be nice to have a way to execute
commands directly rather than using the shell. I'm thinking of a
different command option that could be used instead of "command_line"...
i.e.:

command_exec $USER1$/check_dummy!1!WARNING: $SERVICEDESC$ is stale.

Basically, the first argument is the full path to the executable, and
following ones are the argument array passed to execve. Bangs (!) would
be argument separators (like in service definitions) with maybe the
possibility of escaping them (otherwise a bang in a macro can do the trick).

That would give much more flexibility when complex parameters must be
passed.

- --
Thomas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFKcxNO6dZ+Kt5BchYRAjeYAJ4wzP7b+eib9KKyI+EONNfkYxCrKgCgsVjD
4y1IPXUSagoywEOFFAoRUKM=
=F2FN
-----END PGP SIGNATURE-----

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july




More information about the Developers mailing list