Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 636652 - [Future EAPI] Update Bash version to 4.4 (or 5.0)
Summary: [Future EAPI] Update Bash version to 4.4 (or 5.0)
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: PMS/EAPI (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: PMS/EAPI
Whiteboard: feasible-for-next-eapi
Depends on:
Blocks: future-eapi
  Show dependency tree
Reported: 2017-11-05 18:32 UTC by Ulrich Müller
Modified: 2020-03-17 11:08 UTC (History)
4 users (show)

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

PMS patch (0001-EAPI-7-Bash-version-is-4.3.patch,1.84 KB, patch)
2017-11-05 18:32 UTC, Ulrich Müller
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ulrich Müller gentoo-dev 2017-11-05 18:32:11 UTC
Created attachment 502746 [details, diff]
PMS patch

Bash 4.3 is stable everywhere, so we could update the Bash version in EAPI 7.
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2017-11-05 18:38:40 UTC
Does this version bring anything useful in? If not, then I think switching bash versions for the sake of it is only going to add more EAPI differences for no benefit.
Comment 2 Arfrever Frehtes Taifersar Arahesis 2017-11-05 19:16:45 UTC
Some potentially useful features added in BASH 4.3:

    The shell has `nameref' variables and new -n(/+n) options to declare and
    unset to use them, and a `test -R' option to test for them.

    The shell now allows assigning, referencing, and unsetting elements of
    indexed arrays using negative subscripts (a[-1]=2, echo ${a[-1]}) which
    count back from the last element of the array.

    The {x}<word redirection feature now allows words like {array[ind]} and
    can use variables with special meanings to the shell (e.g., BASH_XTRACEFD).

    The test/[/[[ `-v variable' binary operator now understands array
Comment 3 Ulrich Müller gentoo-dev 2017-11-05 19:33:42 UTC
I don't think that list includes any "killer feature" but IMHO we shouldn't fall too much behind the current version.

We could skip 4.3 of course and go for 4.4 (or later) in a future EAPI instead.
Comment 4 Ulrich Müller gentoo-dev 2018-04-14 10:40:23 UTC
This has been rejected by the council in its 2017-11-12 meeting:

Comment 5 Ulrich Müller gentoo-dev 2019-05-26 10:44:14 UTC
Reopening for bash-4.4 (or 5.0). IMHO, the following feature of bash-4.4 would be  of particular interest. For example, it allows assigning the output of find -print0 to an array:

d.  The `mapfile' builtin now has a -d option to use an arbitrary character
    as the record delimiter, and a -t option  to strip the delimiter as
    supplied with -d.
Comment 6 Ulrich Müller gentoo-dev 2020-02-20 12:55:32 UTC
We may also want to require that the standard variables defined in chapter 7 must not be named references (declare -n), because this would cause issues for tests and presumably also for environment saving.