bug-bash
[Top][All Lists]
Advanced

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

bash-3.00.16 on IRIX incorrectly handles PAREN_ARITHMETIC


From: Stuart Shelton
Subject: bash-3.00.16 on IRIX incorrectly handles PAREN_ARITHMETIC
Date: Wed, 28 Sep 2005 16:38:38 +0100


Configuration Information [Automatically generated, do not change]:
Machine: mips
OS: irix6.5
Compiler: cc
Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='mips' -DCONF_OSTYPE='irix6.5' -DCONF_MACHTYPE='mips-sgi-irix6.5' -DCONF_VENDOR='sgi' -DLOCALEDIR='/usr/bsd/share/locale' -DPACKAGE='bash' -DSHELL -DHAVE_CONFIG_H -I. -I. -I./include -I./lib -I./lib/intl -I/usr/include -c99 -O2 -n32 -mips4 -r12000 -apo -float_const -use_readonly_const -TARG:isa=mips4:platform=ip30:processor=r12000 -TENV:zeroinit_in_bss=ON -DEFAULT:platform=ip30 -OPT:fast_io=ON:Olimit=8192:reorg_common=ON:swp=ON -LNO:auto_dist=ON:fusion_peeling_limit=8:gather_scatter=2 -woff 1174,1183,1552 -n32 -I/usr/include
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




reply via email to

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