bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: test-vc-cvs [was: IRIX failures]


From: Tom G. Christensen
Subject: Re: test-vc-cvs [was: IRIX failures]
Date: Thu, 2 Sep 2010 17:56:44 +0200
User-agent: Mutt/1.4.2.2i

On Thu, Sep 02, 2010 at 08:25:51AM -0600, Eric Blake wrote:
> On 09/02/2010 08:02 AM, Tom G. Christensen wrote:
> 
> >echo $BASH_VERSION
> >+ echo '3.1.16(1)-release'
> >3.1.16(1)-release
> >test $(echo y) = y || exit 1
> >cho y
> >++ cho y
> >bash: line 2: cho: command not found
> >+ test = y
> >bash: line 2: test: =: unary operator expected
> >+ exit 1
> >
> >Definitely something funny going on there.
> >Inserting a space so it's $( echo y) and the test passes.
> 
> Oh my.  Your bash installation is quite broken - no wonder the script 
> bypasses it.  Is this a self-built bash?  If so, you may want to upgrade 
> to 3.1.17 (and/or 3.2, 4.0, or 4.1), and hope that the rebuild fixes 
> whatever was broken about your 3.1.16.  But looking at bash31-017, that 
> only touches array expansion, so it's not directly related to your weird 
> command substitution behavior.  But at least it's not a bug in gnulib.
> 
This is the current bash build available in nekoware.

I built bash 4.1.7 with MIPSpro using the same compiler options as the
current 3.1.16 build and it exhibits the same issue.
After removing optimisation options from CFLAGS the build works so
it seems MIPSpro is miscompiling something when optimisation is turned
on.

I'll let the nekoware guys now that something is fishy with their current
build.

-tgc



reply via email to

[Prev in Thread] Current Thread [Next in Thread]