commit:     d5678d213a6aa60e4e917e4097bad243d043539f
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Tue May 25 15:59:13 2021 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Tue May 25 19:56:47 2021 +0000
URL:        https://gitweb.gentoo.org/proj/pms.git/commit/?id=d5678d21

Ban nameref variables from exported and default scope

Bug: https://bugs.gentoo.org/636652
Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>

 ebuild-format.tex | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/ebuild-format.tex b/ebuild-format.tex
index 4929ba4..3f45242 100644
--- a/ebuild-format.tex
+++ b/ebuild-format.tex
@@ -11,6 +11,8 @@ compatibility settings (e.\,g.\ the \t{BASH_COMPAT} variable) 
are not exported t
 option of bash is set in the global scope of ebuilds. If set, failed pattern 
matches during
 filename expansion result in an error when the ebuild is being sourced.
 
+Name reference variables (introduced in Bash version~4.3) must not be used, 
except in local scope.
+
 The file encoding must be UTF-8 with Unix-style newlines. When sourced, the 
ebuild must define
 certain variables and functions (see chapters~\ref{ch:ebuild-vars} 
and~\ref{ch:ebuild-functions}
 for specific information), and must not call any external programs, write 
anything to standard

Reply via email to