[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bash stuck in a loop defining arrays
From: |
Pierre Gaston |
Subject: |
Re: bash stuck in a loop defining arrays |
Date: |
Fri, 27 Feb 2009 10:45:50 +0200 |
On Thu, Feb 26, 2009 at 9:51 PM, Chet Ramey <chet.ramey@case.edu> wrote:
> Pierre Gaston wrote:
>> sorry if this mail arrives twice, but the first mail didn't seem to
>> made it through.
>>
>> Configuration Information [Automatically generated, do not change]:
>> Machine: i386
>> OS: openbsd4.4
>> Compiler: gcc
>> Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i386'
>> -DCONF_OSTYPE='openbsd4.4' -DCONF_MACHTYPE='i386-unknown-openbsd4.4'
>> -DCONF_VENDOR='unknown' -DLOCALEDIR='/usr/local/share/locale'
>> -DPACKAGE='bash' -DSHELL -DHAVE_CONFIG_H -I. -I. -I./include -I./lib
>> -I/usr/local/include -g -O2
>> uname output: OpenBSD obsd1 4.4 GENERIC#1021 i386
>> Machine Type: i386-unknown-openbsd4.4
>>
>> Bash Version: 4.0
>> Patch Level: 0
>>
>> Description:
>> playing with the associative arrays, bash ends up in what appears
>> to be a busy loop that I cannot interupt with C-c
>>
>> Repeat-By:
>>
>>
>> bash-4.0$ declare -A array
>> bash-4.0$ declare array["foo[bar"]=bleh
>> bash-4.0$ array["foo"]=bleh
>
> I've attached a patch that fixes both problems. It supersedes what I
> previously posted, and should be applied to a vanilla bash-4.0 copy of
> builtins/declare.def. It should be the same as the official patch, when
> I release the first batch.
Yes, it fixes these problems. thanks.