[Top] [All Lists]

Re: Playing a .wav sound

2009-02-10 19:13:09
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

* conditions
  * 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?

* conditions
  # note no :0 here
  dummy=`program  `

The other syntax is to have the braces on the same line but you need spaces:

* conditions
{ dummy=`program  ` }


( 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:

<Prev in Thread] Current Thread [Next in Thread>