Bash 5.2 is stable everywhere, so we could update the Bash version in EAPI 9. See also the discussion on Bash 5.1 in bug 636652 comment #9 and following.
"local -I" (introduced in bash-5.1) may have some use if we decide not to export variables to the environment. For example, an ebuild could do "local -Ix ROOT" when ROOT is needed by some command. (See bug 721088 and bug 830854.)
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/proj/pkgcore/pkgcore.git/commit/?id=3bc08179b3ff8eb944b4784a56b5f02451770e8f commit 3bc08179b3ff8eb944b4784a56b5f02451770e8f Author: Arthur Zamarin <arthurzam@gentoo.org> AuthorDate: 2025-03-21 17:20:33 +0000 Commit: Arthur Zamarin <arthurzam@gentoo.org> CommitDate: 2025-03-21 17:31:35 +0000 EAPI=9: update bash_compat to 5.2 Bug: https://bugs.gentoo.org/946193 Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org> src/pkgcore/ebuild/eapi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)