procmail
[Top] [All Lists]

Re: Problems with whitespace characters in procmail

2008-10-01 21:41:18
On Wed, Oct 01, 2008 at 05:20:15PM -0700, Todd A. Jacobs wrote:

I want to use printf to use octal or hex characters to avoid ambiguity

    SPC_CHAR=`printf \\\\x20`
    TAB_CHAR=`printf \\\\x9`
    WHITESPACE="[${SPC_CHAR}${TAB_CHAR}]"


I know you solved your problem meanwhile.  I simply want to
comment on this part, though.  Why not just:

   SPC_CHAR  = ' '
   TAB_CHAR  = '        ' # real tab
   WHITSPACE = $SPC_CHAR$TAB_CHAR

If you insist on running a shell program to do it despite
the suggestion, at least I hope you have set

  SHELL = /bin/sh

above that so you don't bother to load your interactive shell's
environment with each shell call, and to make sure quoting doesn't
become problematic in shell calls.

Dallman
____________________________________________________________
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

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