bug-bash
[Top][All Lists]
Advanced

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

Re: bash-3.00.16 on IRIX incorrectly handles PAREN_ARITHMETIC


From: Chet Ramey
Subject: Re: bash-3.00.16 on IRIX incorrectly handles PAREN_ARITHMETIC
Date: Thu, 29 Sep 2005 11:39:07 -0400
User-agent: Mozilla Thunderbird 1.0.6 (Macintosh/20050716)

Stuart Shelton wrote:
> 
> 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.

This appears to be irix-specific.  Are you using yacc or bison?  That
could be a cause as well.

Chet
-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet )
                                                Live Strong.
Chet Ramey, ITS, CWRU    chet@case.edu    http://tiswww.tis.case.edu/~chet/




reply via email to

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