Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 60127 - Bash 3 breaks array stripping
Summary: Bash 3 breaks array stripping
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-12 03:16 UTC by Roy Marples (RETIRED)
Modified: 2004-08-18 09:39 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Fixes the problem described (bash-3.0-array-expansion.patch,294 bytes, patch)
2004-08-17 02:01 UTC, Roy Marples (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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