bug-bash
[Top][All Lists]
Advanced

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

Re: parameter indexing doesn't work for last element


From: Chet Ramey
Subject: Re: parameter indexing doesn't work for last element
Date: Sat, 07 May 2005 20:52:09 -0400
User-agent: Mozilla Thunderbird 1.0.2 (Macintosh/20050317)

Volker Kuhlmann wrote:
> Configuration Information [Automatically generated, do not change]:
> Machine: i586
> OS: linux
> Compiler: gcc -I/usr/src/packages/BUILD/bash-3.0 
> -L/usr/src/packages/BUILD/bash-3.0/../readline-5.0
> Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='i586' 
> -DCONF_OSTYPE='linux' -DCONF_MACHTYPE='i586-suse-linux' -DCONF_VENDOR='suse' 
> -DLOCALEDIR='/usr/share/locale' -DPACKAGE='bash' -DSHELL -DHAVE_CONFIG_H  -I. 
>  -I. -I./include -I./lib   -O2 -march=i586 -mcpu=i686 -fmessage-length=0 
> -Wall -D_GNU_SOURCE -Wall -pipe -g -fbranch-probabilities
> uname output: Linux ruru 2.6.8-24.14-default #1 Tue Mar 29 09:27:43 UTC 2005 
> i686 i686 i386 GNU/Linux
> Machine Type: i586-suse-linux
> 
> Bash Version: 3.0
> Patch Level: 0
> Release Status: release
> 
> Description:
>       Indexing array variables doesn't work for ranges starting not at
>       the first element. The manual says:
>       
>       '${PARAMETER:OFFSET:LENGTH}'
>       ... If PARAMETER is an array name indexed by `@' or `*', the
>       result is the LENGTH members of the array beginning with
>       `${PARAMETER[OFFSET]}'.
>       
>       With an index of [@], the result is nothing unless OFFSET is the
>       last element.
>       
>       This has worked properly with bash 2, I believe.
>       
>       I assume I am wasting my time reporting this, but there isn't a
>       searchable bug database mentioned on 
>       http://directory.fsf.org/GNU/bash.html

ftp://ftp.cwru.edu/pub/bash/bash-3.0-patches/bash30-008
ftp://ftp.gnu.org/pub/gnu/bash/bash-3.0-patches/bash30-008

Chet
-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet )
                                                Live...Laugh...Love
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]