procmail
[Top] [All Lists]

RE: return codes

2004-02-27 09:53:49

:0
* -1^0
* $ $RC^0
{ ONE_OR_MORE = yes } # Return code is > 1

Sigh. Above, the variable MORE_THAN_ONE would be a much better choice
than the misleading ONE_OR_MORE. Final rewrite:

:0
* ! ? razor-check
{
RC=$?
 
:0
* -1^0
* $ $RC^0
{ RC_MORE_THAN_ONE = yes } # Return code is > 1
 
:0
* RC ?? ^^1^^
{ RC_EXACTLY_ONE = yes  } # Return code is exactly 1
 
}




_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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