procmail
[Top] [All Lists]

Re: Problem assigning to and testing a variable

1998-01-05 20:58:44
"Donald" == Donald E Hammond <deh(_at_)openix(_dot_)com> writes:
 
Donald> :0
Donald> * ? test $HOUR -le 12

I think you need to write it like this:

* ? $ test $HOUR -le 12

The `$' at the start tells procmail to expand variables in the
condition line.

This would be a bug in 3.10, as variables should be exported to the
child's environment by default.

Donald> {
Donald>     LOG=" $HOUR =< 12 $NL"
Donald>     :0:
Donald>     $PMDIR/12-
Donald> }

-- 
G. Geens - Home: <ggeens(_at_)iname(_dot_)com> - Work: 
<ggeens(_at_)inetgate(_dot_)capgemini(_dot_)nl>
``Normally, I'm white and fluffy''

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