Gentoo Archives: gentoo-commits

From: "Ulrich Müller" <ulm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/pms:eapi-8 commit in: /
Date: Wed, 26 May 2021 07:13:46
Message-Id: 1621972607.d5678d213a6aa60e4e917e4097bad243d043539f.ulm@gentoo
1 commit: d5678d213a6aa60e4e917e4097bad243d043539f
2 Author: Ulrich Müller <ulm <AT> gentoo <DOT> org>
3 AuthorDate: Tue May 25 15:59:13 2021 +0000
4 Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org>
5 CommitDate: Tue May 25 19:56:47 2021 +0000
6 URL: https://gitweb.gentoo.org/proj/pms.git/commit/?id=d5678d21
7
8 Ban nameref variables from exported and default scope
9
10 Bug: https://bugs.gentoo.org/636652
11 Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>
12
13 ebuild-format.tex | 2 ++
14 1 file changed, 2 insertions(+)
15
16 diff --git a/ebuild-format.tex b/ebuild-format.tex
17 index 4929ba4..3f45242 100644
18 --- a/ebuild-format.tex
19 +++ b/ebuild-format.tex
20 @@ -11,6 +11,8 @@ compatibility settings (e.\,g.\ the \t{BASH_COMPAT} variable) are not exported t
21 option of bash is set in the global scope of ebuilds. If set, failed pattern matches during
22 filename expansion result in an error when the ebuild is being sourced.
23
24 +Name reference variables (introduced in Bash version~4.3) must not be used, except in local scope.
25 +
26 The file encoding must be UTF-8 with Unix-style newlines. When sourced, the ebuild must define
27 certain variables and functions (see chapters~\ref{ch:ebuild-vars} and~\ref{ch:ebuild-functions}
28 for specific information), and must not call any external programs, write anything to standard