Why does bogofilter need bash?

Matthias Andree matthias.andree at gmx.de
Fri May 28 20:35:05 CEST 2004


Jef Poskanzer <jef at acme.com> writes:

>>These need bash according to the #! line:
>>
>>contrib/randomtrain
>>contrib/scramble
>>contrib/trainbogo.sh
>
> My bogofilter distribution doesn't seem to include the third file,
> but the other two use shell functions.  Classic sh can not handle
> those.  Current sh versions do handle them.

You'll need to drop the "function" key word for pdksh. If I've missed
trainbogo.sh, I'll add it while I'm at it.

> I also spotted an argument construct in randomtrain - ${1:0-1:1} - that
> I'm not sure classic sh would handle.

It won't. ash barfs.

-- 
Matthias Andree

Encrypted mail welcome: my GnuPG key ID is 0x052E7D95



More information about the Bogofilter mailing list