Sometimes I get weird ideas.  The following is a weird idea.  I'm not
suggesting we do it at this point, but I'd like to know what others
think.  If we have a consensus that it's workable and useful, I can
add it.

In bash (and Korn, I believe), the back-tick operator for running an
external program and collecting its output has been deprecated in
favor of the $(external_program) syntax (the program name is placed
inside parenthesis and introduced with a '$').

I believe I could add that syntax to the filter file format in the
same way I've added variable interpolation (${VARIABLE}).  The output
of the program would be substituted into the filter text.

I also believe that a minor extension of the above idea would allow us
to run Python functions in the Defaults namespace (any functions you put in
your config file are in the Defaults namespace) and substitute a
string-ized version of their output.

Any thoughts about this (it's cool, it's frightening and horrible) are
welcome.  Also, any ideas about potential uses would be welcome, since
adding a feature that nobody uses or is likely to use is of little
value.


Tim
_________________________________________________
tmda-workers mailing list ([EMAIL PROTECTED])
http://tmda.net/lists/listinfo/tmda-workers

Reply via email to