On 18 Mar, Jeff Orrok wrote:
| I have been through a few different man pages for various shells, and I can't
seem to
| find an explanation for ${name-word}. I have run across ${name:-word} for
some
| shells, which say that word will be assigned to name (and used) if name is
null or
| unset. However, my own tests with ${name-word} result in word being used
ONLY if
| name is unset. If name is null, then null is used.
Both substitutions are documented in the bash man page. I can't speak
for others, but I'd guess same is true for sh and other derivatives in
addition to bash. I've never used ksh for anything meaningful, so have
no guess there; but it's not recommended for use with procmail anyway.
Have another look in the same place where you found ${name:-word} and
${name-word} is probably there too.
| This behavior should be explicitly documented in the procmailrc man page.
WTFM!!!
Personally, I don't think that's necessary (nor desirable) since it's
not unique to procmail.
--
Email address in From: header is valid * but only for a couple of days *
This is my reluctant response to spammers' unrelenting address harvesting
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail