Sysop: | Amessyroom |
---|---|
Location: | Fayetteville, NC |
Users: | 40 |
Nodes: | 6 (0 / 6) |
Uptime: | 09:30:29 |
Calls: | 291 |
Files: | 910 |
Messages: | 76,419 |
Hi,
associative arrays declared in functions are implicitly local in bash.
That means any associative array declared in global ebuild scope needs
to be declare global explicitly, as it's not guaranteed not to be
sourced within a function by a PM ( e.g. paludis does this ).
https://lists.gnu.org/archive/html/bug-bash/2011-08/msg00274.html https://github.com/pkgcore/pkgcheck/issues/628
Paul
Hi Paul,
thanks for the reply. To be honest I'm a bit confused about your suggestion as I don't think I declared any new associative array. The patch only add new value in the string with delimeter. So I'm not sure what you expect me to change there :)
MYT
On Wednesday, 27 November 2024 at 16:14, Paul Zander <negril.nx+gentoo@gmail.com> wrote:
Hi,
associative arrays declared in functions are implicitly local in bash.
That means any associative array declared in global ebuild scope needs
to be declare global explicitly, as it's not guaranteed not to be
sourced within a function by a PM ( e.g. paludis does this ).
https://lists.gnu.org/archive/html/bug-bash/2011-08/msg00274.html https://github.com/pkgcore/pkgcheck/issues/628
Paul