src/version.sh should explicitely declare to use bash

Naoya Maruyama naoya at matsulab.is.titech.ac.jp
Fri Nov 14 04:07:52 CET 2003


Hi David,

I just did "make check", and it seems there are no other errors.
See the attachment for the complete output.

cheers,

---
Naoya Maruyama <naoya at matsulab.is.titech.ac.jp>
Tokyo Institute of Technology

On Thu, 13 Nov 2003 21:53:45 -0500
David Relson <relson at osagesoftware.com> wrote:

> 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
> 
> ---------------------------------------------------------------------
> FAQ: http://bogofilter.sourceforge.net/bogofilter-faq.html
> To unsubscribe, e-mail: bogofilter-dev-unsubscribe at aotto.com
> For summary digest subscription: bogofilter-dev-digest-subscribe at aotto.com
> For more commands, e-mail: bogofilter-dev-help at aotto.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: check.log
Type: application/octet-stream
Size: 3120 bytes
Desc: not available
URL: <https://www.bogofilter.org/pipermail/bogofilter-dev/attachments/20031114/a10d859e/attachment.obj>


More information about the bogofilter-dev mailing list