On Tue, 10 Feb 2009, Rem P Roberti wrote:
On 2009.02.10 23:48:42 +0000, Alan Clifford wrote:
On Tue, 10 Feb 2009, Rem P Roberti wrote:
Does the piped condition have to be contained in curly braces? That's
the question I'm having about syntax. If I do use the piped condition,
how to I include it within the recipe?
No, assignment to a variable does not have to go in a recipe at all.
Understood, but assuming that there might be a reason to only play a
sound in specific cases, is it possible to incorporate that condition in
a recipe?
Normally, after a { you would be starting an new recipe, eg
:0
* conditions
{
:0
* blah blah conditions
So to have the variable assignment within an enclosing recipe, by putting
in the { you are in effect putting the assignement outside of a recipe
even though it is within the enclosing recipe. Does that make sense?
:0
* conditions
{
# note no :0 here
dummy=`program `
}
The other syntax is to have the braces on the same line but you need
spaces:
:0
* conditions
{ dummy=`program ` }
--
Alan
( Please do not email me AS WELL as replying to the list. Please
address personal email to alan+1@ as lists@ is not read. )
____________________________________________________________
procmail mailing list Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail