On Mon, Aug 24, 1998 at 02:00:08PM -0400, Rik Kabel wrote:
Not only can you place two (or more) variable assignments in a line,
you can treat many curly braces as you would new lines, and combine
lines as follows:
Whew, that looks like Berg code! :)
Why you would want to directly write condensed code like that
(including doubling assignments) is beyond me. Maintainability should
be paramount. I wrote the condenser as the first step in a now halted
I have a case where, as an action for every recipe in a large set, I
set a variable and call an includerc. The includerc line never changes
and I wanted to keep it compact and clear. Here's an example, also
showing Philip Guenther's Message-Id rule, which has been in demand
lately:
# Phil Guenther's Message-Id: rule
:0
* ()^Message-Id:\/.*
* ! ^Message-Id:[ ]*<[ ]*("([^"\]|\\.)*"|[-!#-'*+/-9=?A-Z^-~]+)\
([ ]*\.[ ]*("([^"\]|\\.)*"|[-!#-'*+/-9=?A-Z^-~]+))*\
[ ]*(_at_)[ ]*\
(\[[ ]*([^][\]|\\.)*[ ]*\]|\
[-!#-'*+/-9=?A-Z^-~]+([ ]*\.[ ]*[-!#-'*+/-9=?A-Z^-~]+)*)\
[ ]*>
{ JFMATCH="$JFSEC: Bad Message-Id: $MATCH" INCLUDERC=$JFDIR/junkfilter.match }
Greg, who is releasing a new version of junkfilter, his procmail-based
spam filter, on Aug 31. http://www.pobox.com/~gsutter/junkfilter/
--
Gregory S. Sutter "How do I read this file?"
mailto:gsutter(_at_)pobox(_dot_)com "You uudecode it."
http://www.pobox.com/~gsutter/ "I I I decode it?"
PGP DSS public key 0x40AE3052