On Thu, Dec 11, 2008 at 06:06:54PM -0800, Professional Software
Engineering wrote:
At 20:46 2008-12-11 +0100, Dallman Ross wrote:
The rest of Sean's advice -- most snipped here -- was fine, but
this part is not correct. The curly braces do not cause quoting!
Argh, you're right. Too little sleep for me. I make it a habit of
encapsulating the variable names for expansion with braces:
{$\BADWORDS}
Duh.
I can't sleep either. Just got up after lying in bed for 3 hours
without sleeping.
I don't follow your clarification, however. That wouldn't work.
% procmail DEFAULT=/dev/null 'FOO=foo|bar' 'BAR={$\FOO}' 'LOG="BAR is $BAR"'
/dev/null < /dev/null
BAR is {()foo\|bar}
Perhaps you meant you use curly braces afterward as a reminder to
yourself that that var is quoted? E.g.,
% procmail DEFAULT=/dev/null 'FOO=foo|bar' 'BAR=$\FOO' 'LOG="BAR is ${BAR}"'
/dev/null < /dev/null
BAR is ()foo\|bar
Dallman
____________________________________________________________
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