[Top][All Lists]

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

Re: locally declared arrays do not act as arrays

From: Chet Ramey
Subject: Re: locally declared arrays do not act as arrays
Date: Sun, 21 May 2006 16:29:05 -0400
User-agent: Thunderbird (Macintosh/20060308)

Andrew Stitt wrote:
> Configuration Information [Automatically generated, do not change]:
> Machine: i686
> OS: linux-gnu
> Compiler: gcc
> Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='i686' 
> -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i686-pc-linux-gnu' 
> -DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/locale' -DPACKAGE='bash' -DSHELL 
> -DHAVE_CONFIG_H  -I.  -I. -I./include -I./lib   -O -march=pentium-m -mmmx 
> -mfpmath=sse -msse2 -pipe -ffast-math -funroll-loops -O3
> uname output: Linux courier 2.6.11 #6 Sun May 8 23:59:20 PDT 2005 i686 
> unknown unknown GNU/Linux
> Machine Type: i686-pc-linux-gnu
> Bash Version: 3.0
> Patch Level: 16
> Release Status: release
> Description:
> when I declare a local variable as an array it still acts as a scalar,
> not as an array.
> I discovered that if I seperate the local declaration from the
> initialization, the variable properly acts as an array.

This was fixed in bash-3.1.

``The lyf so short, the craft so long to lerne.'' - Chaucer
                       Live Strong.  No day but today.
Chet Ramey, ITS, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/

reply via email to

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