procmail
[Top] [All Lists]

Re: quick question

1999-08-24 11:14:01
Stan recommended for checking whether a variable is non-empty.

| * VARIABLE ?? .
| # (note the period at the end)

Sorry, but that won't match on a variable consisting only of newlines. 
Either of these will work:

  * ! VARIABLE ?? ^^^^
or
  * $ ! ${VARIABLE:+!}

Apologies for the forged header, but I'm sick of getting kicked off this list
whenever I post because NDNs from other subscribers are misread by SmartList.

dattier at mcs dot net

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