Stan Ryckman <stanr(_at_)sunspot(_dot_)tiac(_dot_)net> wrote:
Stan> Note... the backticks and pipe really have nothing to do with the syntax
Stan> confusion... consider these much simpler examples analogous to the above;
Stan> if you relate these to the man pages, then the more complicated cases
Stan> should make sense:
Stan>
Stan> 1) By itself:
Stan> X=2
Stan> does what you expect.
Stan>
Stan> 2) In a recipe action line:
Stan> :0
Stan> * conditions
Stan> X=2
Stan> delivers to file "X=2"
Stan>
Stan> 3) In a recipe:
Stan> :0
Stan> * conditions
Stan> { X=2 }
Stan> probably does what you expect, setting the variable X to "2".
Thanks. I finally understood what Era was trying to tell me.
Stan> Another point I don't know if Philip covers... the above examples, setting
Stan> HEAD, could produce amusing results if somewhere else the .procmailrc
Stan> assumes that $HEAD evaluates to /bin/head (or wherever it is) :-)
Is there any suggested rule on naming variables?
_/_/_/ Mitsuru FURUKAWA _/_/_/
_/_/_/ Tokyo, Japan _/_/_/
_/_/_/ mailto:furu(_at_)009(_dot_)com _/_/_/
_/_/_/ http://www.009.com/furu/ _/_/_/