src/version.sh should explicitely declare to use bash

David Relson relson at osagesoftware.com
Fri Nov 14 03:53:45 CET 2003


On Fri, 14 Nov 2003 10:40:55 +0900
Naoya Maruyama <naoya at matsulab.is.titech.ac.jp> wrote:

> Hi all,
> 
> I just downloaded the bogofilter v0.15.8, and tried to compile. But
> the compilation failed due to an error in src/version.sh. On my
> Solaris, the execution of the shell script fails reporting the
> following error:
> 
> ./version.sh: syntax error at line 19: `VERSION=$' unexpected
> 
> And the line is:
> 
> VERSION=$(grep define.VERSION config.h | awk '{print $3}' | tr -d '"')
> 
> I believe the above statement isn't valid in sh, but it's one of the
> extensions by bash. Thus the first line of the script should be
> "#!bin/bash", not "#!/bin/sh". Actually, after changing the line as
> such, the entire compilation finished without any errors.
> 
> So, I think the script shoud explicitly declare to use bash, not sh. 
> 
> Hope this will help the bogofilter developers. 
> 
> cheers,
> 
> ---
> Naoya Maruyama <naoya at matsulab.is.titech.ac.jp>

Greetings,

I've changed the #! line in version.sh as you've suggested and it will
be in the next release.  Have you run "make check" which runs
bogofilter's self test?  If not, please do and report whether the same
problem occurs elsewhere.

Cheers!

David




More information about the bogofilter-dev mailing list