Re: bash-3 broken on IRIX?

2005-09-24 Thread Michael van Elst
On Sat, Sep 24, 2005 at 11:05:19AM +0100, Stuart Shelton wrote: > Ah - that's interesting... When you say non-OpenPKG, did you build them > yourself from source, or did you download the binaries from elsewhere? Someone in my company did build it from source. > Do you know what version of the com

Re: bash-3 broken on IRIX?

2005-09-24 Thread Stuart Shelton
> I tried non-OpenPKG versions of bash-2.05 and bash-3.0 on IRIX64: > > bash-2.05$ A=$(( 3 + 4 )); echo $A > 7 > > bash-3.00$ A=$(( 3 + 4 )); echo $A > 7 > > % uname -a > IRIX64 6.5 04070317 IP30 > > AFAIK the binaries were built using the IRIX C Compiler. > Ah - that's interesting.

Re: bash-3 broken on IRIX?

2005-09-23 Thread Michael van Elst
On Fri, Sep 23, 2005 at 12:40:54PM +0200, Ralf S. Engelschall wrote: > No, the $((..)) construct is an arithmetic expression in Bash. The > result has to be A=7 and this is actually the case on all platforms I've > available: Just FYI, I tried non-OpenPKG versions of bash-2.05 and bash-3.0 on IR

Re: bash-3 broken on IRIX?

2005-09-23 Thread Matthias Kurz
On Fri, Sep 23, 2005, Matthias Kurz wrote: > On Fri, Sep 23, 2005, Stuart Shelton wrote: [...] > > $ /usr/openpkg/etc/rc all start > > OpenPKG: start: /usr/openpkg/etc/rc: line 448: 0: command not found > > openpkg/usr/openpkg/etc/rc: line 455: ): command not found > > /usr/openpkg/etc/rc: line 66

Re: bash-3 broken on IRIX?

2005-09-23 Thread Matthias Kurz
On Fri, Sep 23, 2005, Stuart Shelton wrote: > > If I run 'A=$(( 3 + 4 )); echo $A' on different shells, I get the > following results: > > $ locate bin/bash > /usr/bsd/bin/bash > /usr/gnu/bin/bash > /usr/nekoware/bin/bash > /usr/openpkg/bin/bash > > $ /usr/bsd/bin/bash --version > GNU bash, ve

Re: bash-3 broken on IRIX?

2005-09-23 Thread Ralf S. Engelschall
On Fri, Sep 23, 2005, Stuart Shelton wrote: > On Fri, 2005-09-23 at 10:57 +0200, Ralf S. Engelschall wrote: > > On Fri, Sep 23, 2005, Stuart Shelton wrote: > > > If I run 'A=$(( 3 + 4 )); echo $A' on different shells, I get the > > > following results: > > > > For me it looks that it already incor

Re: bash-3 broken on IRIX?

2005-09-23 Thread Ralf S. Engelschall
On Fri, Sep 23, 2005, Stuart Shelton wrote: > >As (1) both OpenPKG and non-OpenPKG Bash, (2) both old and new versions > >of Bash and (3) the error does not exists on other platforms, I would > >say: yes, Bash is broken on your IRIX64 platform. > > > >For me it looks that it already incorrectly _p

Re: bash-3 broken on IRIX?

2005-09-23 Thread Stuart Shelton
On Fri, 2005-09-23 at 10:57 +0200, Ralf S. Engelschall wrote: > On Fri, Sep 23, 2005, Stuart Shelton wrote: > > If I run 'A=$(( 3 + 4 )); echo $A' on different shells, I get the > > following results: > > For me it looks that it already incorrectly _parses_ (and not just > evaluates) the $((..)) c

Re: bash-3 broken on IRIX?

2005-09-23 Thread Stuart Shelton
As (1) both OpenPKG and non-OpenPKG Bash, (2) both old and new versions of Bash and (3) the error does not exists on other platforms, I would say: yes, Bash is broken on your IRIX64 platform. For me it looks that it already incorrectly _parses_ (and not just evaluates) the $((..)) construct. Th

Re: bash-3 broken on IRIX?

2005-09-23 Thread Ralf S. Engelschall
On Fri, Sep 23, 2005, Stuart Shelton wrote: > If I run 'A=$(( 3 + 4 )); echo $A' on different shells, I get the > following results: > > $ locate bin/bash > /usr/bsd/bin/bash > /usr/gnu/bin/bash > /usr/nekoware/bin/bash > /usr/openpkg/bin/bash > > $ /usr/bsd/bin/bash --version > GNU bash, version

bash-3 broken on IRIX?

2005-09-23 Thread Stuart Shelton
If I run 'A=$(( 3 + 4 )); echo $A' on different shells, I get the following results: $ locate bin/bash /usr/bsd/bin/bash /usr/gnu/bin/bash /usr/nekoware/bin/bash /usr/openpkg/bin/bash $ /usr/bsd/bin/bash --version GNU bash, version 3.00.16(1)-release (mips-sgi-irix6.5) Copyright (C) 2004 Free