Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 60127

Summary: Bash 3 breaks array stripping
Product: Gentoo Linux Reporter: Roy Marples (RETIRED) <uberlord>
Component: Current packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED UPSTREAM    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Fixes the problem described

Description Roy Marples (RETIRED) gentoo-dev 2004-08-12 03:16:55 UTC
Here's a small bash snippet

#!/bin/bash

x=(one two)
echo ${x[@]:1}
# prints nothing in bash3
# prints two as expected in bash2

x=(one two three)
echo ${x[@]:1}
#prints two three as expected in bash2 and bash3
Comment 1 Aron Griffis (RETIRED) gentoo-dev 2004-08-12 08:18:00 UTC
UberLord, please file this to the bash maintainers using bashbug.  (But thanks for filing it here first, that is the right thing to do.)
Comment 2 Roy Marples (RETIRED) gentoo-dev 2004-08-12 09:32:51 UTC
Done.
Comment 3 Aron Griffis (RETIRED) gentoo-dev 2004-08-12 13:55:59 UTC
I've never been sure of the meaning of Resolved UPSTREAM, but it seems to make sense here.
Comment 4 Roy Marples (RETIRED) gentoo-dev 2004-08-17 02:01:52 UTC
Created attachment 37579 [details, diff]
Fixes the problem described

Chet Ramey forwarded me this patch with i included as the first patch in the
current ebuild which fixes the problem above :)
Comment 5 Aron Griffis (RETIRED) gentoo-dev 2004-08-18 09:39:07 UTC
ok, I added this to bash-3.0-r5