procmail
[Top] [All Lists]

Re: grep whitelists and checking return code

2004-07-13 15:29:56
    | egrep -is -f ~/.procmail/white.lst

So my return code is always 1 even though 'test' is in my whitelist and
'xxxtest' is not.  Can someone verify this same behavior?

I'd say your patterns have a problem. Do you have an empty line in
there? Bad move. There are also some abominably braindead grep around,
e.g. Solaris, which gives totally random return codes on fixed string
patterns with -i if the patterns contain uppercase letters. The GNU grep
is fine.

Volker

-- 
Volker Kuhlmann                 is possibly list0570 with the domain in header
http://volker.dnsalias.net/             Please do not CC list postings to me.

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