[cvs] bogofilter/src msg-count.sh,1.2,1.3

Matthias Andree matthias.andree at gmx.de
Sat Dec 6 14:42:09 CET 2003


David Relson <relson at osagesoftware.com> writes:

>> > -if [ "x$1" = "x-?" ] || [ "x$1" = "x-h" ]; then
>> > +# $Id$ 
>> > +
>> > +if [ "$1" = "-?" ] || [ "$1" = "-h" ]; then
>> 
>> Why this change? The x prefix is to defeat options that some random
>> test or [ command might parse.
>
> Given the quotes, the x isn't needed.  Are there portability issues?

I'd rather not dare bump into a broken shell or broken test command
here. Current shells/test command will handle it (by counting arguments
first and then figuring "three argument form, 2nd argument is a binary
relation operator"), older may not.

-- 
Matthias Andree

Encrypt your mail: my GnuPG key ID is 0x052E7D95




More information about the bogofilter-dev mailing list