Subject: Re: pkg/32955 (hobbitmon package exits configure when using bash
To: None <manu@netbsd.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org,>
From: rudolf <netbsd@eq.cz>
List: pkgsrc-bugs
Date: 03/01/2006 18:35:02
The following reply was made to PR pkg/32955; it has been noted by GNATS.

From: rudolf <netbsd@eq.cz>
To: Emmanuel Dreyfus <manu@netbsd.org>
Cc: gnats-bugs@netbsd.org, gnats-admin@netbsd.org,
	pkgsrc-bugs@netbsd.org
Subject: Re: pkg/32955 (hobbitmon package exits configure when using bash
 as shell)
Date: Wed, 01 Mar 2006 19:32:32 +0100

 Emmanuel Dreyfus wrote:
 > On Wed, Mar 01, 2006 at 11:25:02AM +0000, rudolf wrote:
 >>  Configuration script for Hobbit
 >>  
 >>  ./configure: line 222: syntax error near unexpected token `fi'
 >>  ./configure: line 222: `                fi'
 >>  *** Error code 2
 > 
 > I cannot reproduce this error, and I fail to see anything wrong in the 
 > configure script. Are we sure this is not a bash bug?
 > 
 
 The configure script is ok, the patch-ae is wrong. The following is 
 syntactically invalid in bash:
 ---start---
 #!/usr/pkg/bin/bash
 if echo
    echo
 else
 #
 fi
 ---end---
 
 we need to comment out the ``else'' in patch-ae too:
 ---
 if ...
 ...
 #else
 #
 fi
 ---
 
 r.