procmail
[Top] [All Lists]

Re: Which characters to quote ?

2005-04-04 08:26:06
On Apr 4, 2005 8:01 AM, Dallman Ross <dman(_at_)nomotek(_dot_)com> wrote:
On Mon, Apr 04, 2005 at 04:24:52PM +0200, Michelle Konzack wrote:

                      tr -d $'\t' |tr -d $'\n' |tr -d $'\r' |\

Crimeney, but that is ugly.

"Crimony" :-)

I can't figure out what the $'s are for in there.

That's POSIX shell syntax.  A dollar sign followed by a single quote
indicates that the following string up to the matching single quote is
to have C string interpretation applied with respect to backslashes
etc.  (It's not *exactly* C syntax, but close enough.)

____________________________________________________________
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