Gentoo Archives: gentoo-pms

From: "Ulrich Müller" <ulm@g.o>
To: gentoo-pms@l.g.o
Cc: "Ulrich Müller" <ulm@g.o>
Subject: [gentoo-pms] [PATCH 07/21] Ban nameref variables from exported and default scope
Date: Thu, 27 May 2021 20:27:25
Message-Id: 20210527202609.6445-8-ulm@gentoo.org
In Reply to: [gentoo-pms] EAPI 8 draft for review by "Ulrich Müller"
1 Bug: https://bugs.gentoo.org/636652
2 Signed-off-by: Ulrich Müller <ulm@g.o>
3 ---
4 ebuild-format.tex | 2 ++
5 1 file changed, 2 insertions(+)
6
7 diff --git a/ebuild-format.tex b/ebuild-format.tex
8 index 4929ba4..25ba28e 100644
9 --- a/ebuild-format.tex
10 +++ b/ebuild-format.tex
11 @@ -11,6 +11,8 @@ compatibility settings (e.\,g.\ the \t{BASH_COMPAT} variable) are not exported t
12 option of bash is set in the global scope of ebuilds. If set, failed pattern matches during
13 filename expansion result in an error when the ebuild is being sourced.
14
15 +Name reference variables (introduced in bash version~4.3) must not be used, except in local scope.
16 +
17 The file encoding must be UTF-8 with Unix-style newlines. When sourced, the ebuild must define
18 certain variables and functions (see chapters~\ref{ch:ebuild-vars} and~\ref{ch:ebuild-functions}
19 for specific information), and must not call any external programs, write anything to standard
20 --
21 2.31.1