[Devel] CVS commitlog: sip-server/modules/exec README exec_mod.c sip-server/modules/exec/doc exec_user.sgml

Dan Pascu dan at ag-projects.com
Thu Dec 1 14:36:40 CET 2005


On Thursday 01 December 2005 13:51, Klaus Darilion wrote:
> Klaus Darilion wrote:
> > Daniel-Constantin Mierla wrote:
> >> User: miconda   - caution: if the var your passing out has a bash
> >> special character in it, the var needs to be placed inside quotes,
> >> for ex: exec_msg("print-contact.sh '$ct'");
> >
> > IMO this warning should be included in the README
>
> or even better: is it possible to put all pseudo variables into ''
> automatically?

making the program 'smarter' than the user is always a bad idea.
the application has no idea when that variable really needs quoting and 
just blindly applies a rule that may lead to undesired results.
the important factor to consider when implementing such features is if the 
user will be able to do it the other way (without quotes in this case), 
or will he be forced to the program's way and have no way around it.

>
> klaus
>
> _______________________________________________
> Devel mailing list
> Devel at openser.org
> http://openser.org/cgi-bin/mailman/listinfo/devel

-- 
Dan



More information about the Devel mailing list