uname output: IRIX64 octane 6.5 07010238 IP30
Machine Type: mips-sgi-irix6.5
Bash Version: 3.0
Patch Level: 16
Release Status: release
Description:
PAREN_ARITHMETIC seems to be broken when bash-3.00 is compiled on IRIX:
e.g.
$ bash-2.05 -c 'A=$(( 2 + 3 )); echo $A'
5
$ bash-3.00 -c 'A=$(( 2 + 3 )); echo $A'
2: command not found
And, infact, there may be some form of off-by-one error here:
$ bash-3.00 -c 'A=$(x(2+3)); echo $A'
5
... so it looks as if the character immediately following the initial
opening bracket is dropped.
Repeat-By:
Compile bash on an IRIX machine using SGI's compiler suite
(MIPSpro 7.4.3m, in this instance).
Have yet to confirm whether bash compiled with GCC has the same problem...
Cheers,
Stuart