bug-bash
[Top][All Lists]
Advanced

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

Re: Problem with expansion of empty elements in ${arrays[*]:0}


From: Chet Ramey
Subject: Re: Problem with expansion of empty elements in ${arrays[*]:0}
Date: Mon, 30 Jun 2008 23:05:52 -0400
User-agent: Thunderbird 2.0.0.14 (Macintosh/20080421)

Vítor De Araújo wrote:
Configuration Information [Automatically generated, do not change]:
Machine: i486
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='i486' 
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i486-pc-linux-gnu' 
-DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/locale' -DPACKAGE='bash' -DSHELL 
-DHAVE_CONFIG_H   -I.  -I../bash -I../bash/include -I../bash/lib   -g -O2
uname output: Linux exmachina 2.6.18-4-686 #1 SMP Mon Mar 26 17:17:36 UTC 2007 
i686 GNU/Linux
Machine Type: i486-pc-linux-gnu

Bash Version: 3.1
Patch Level: 17
Release Status: release

Description:

An expansion like ${array[*]:index} renders empty elements as delete
(ASCII 127) characters. I have no idea of why this happens.

I am using bash 3.1, but I have tested bash 3.2.27 on an Ubuntu 7.04 machine
and it happens as well.

Thanks for the report.  This is fixed in bash-4.0.

Chet

--
``The lyf so short, the craft so long to lerne.'' - Chaucer

Chet Ramey, ITS, CWRU    chet@case.edu    http://cnswww.cns.cwru.edu/~chet/




reply via email to

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