Robert Allerstorfer wrote:
On Mon, 08 Mar 2004, 07:49 GMT-06 David W. Tamkin wrote:
* $ ! ?"$TEST -d $VIRUSDIR/EXE"
did it:
procmail: Executing
"/usr/bin/test,-d,/home/roal/mail/TRASH/viruses/EXE"
No, I did NOT write that, Allestorfer. You wrote it. I quoted it from
you and I added this,
By the way, you don't need the "$" modifier on "?" conditions unless you
want to simulate an eval and have two evaluation passes on the line.
but when you quoted both back from me, you edited your own name out of
where I had credited the first part to you to try to make it look as if
your words were mine. That is dishonest.
Now to the question.
I guess you have not tested that suggestion because it's simply wrong.
No, I didn't. I also didn't notice the superfluous quotation marks you
had put around the entire thing; that's why you needed the extra
interpretation pass. Try this:
* ! ? $TEST -d "$VIRUSDIR/EXE"
or if there is no whitespace in the expansion of $VIRUSDIR, just
* ! ? $TEST -d $VIRUSDIR/EXE
You needed that extra dollar sign to resoften the spaces you had
hardened by enclosing the entire command in quotes.
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail