procmail
[Top] [All Lists]

Re: * ! ? $TEST -d "$some_directory" may not work (was: Re: "$" modifier on "?" conditions)

2004-03-27 08:50:48
To my suggestion of

 * ! ? $TEST -d "$VIRUSDIR/EXE"

Robert responded,

Some time went by, but I now found a case where that condition did
not work, but

        * $ ! ?$TEST -d "$VIRUSDIR/EXE"

did. So, the "$" modifier is in fact needed on such "?" conditions if
you want to be bulletproof. Also, without the "superfluous quotation
marks".

Could you pls tell where you have found that the "$" modifier would
not be required?

Could you please tell us exactly what that condition was? Unless the expansion of $TEST or the quoted expansion of "$VIRUSDIR/EXE" contains whitespace or something else whose meaning would change upon re-evaluation, there's no way to say.

You still have to agree that the extra "$" was not required simply to expand the variable $TEST.


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