Charles Gregory wrote:
STRIPCMD="/usr/local/bin/subject.stripper.pl '${SUBJECT}'"
I believe, as per shell rules, those single quotes *protect* the variable
from being substituted. Try omitting the quotes. Or execute it directly
with the parameter in double-quotes:
SUBJECT2=`/usr/local/bin/subject.stripper.pl "${SUBJECT}"`
You are right that single quotes protect the variable from expanding.
However, the single quotes are part of the shell execution string and
therefore passed straight to the shell. In this case, this is because
they are inside the "". Without them, the shell will interpret spaces
and special symbols, which is definitely not wanted. :)
Dallman's suggestion worked well, so I'll stick with that, instead
of my own perl script. I appreciate the reply though!
--
$DEFAULT.sig
____________________________________________________________
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