commit:     a6094dbb3a288bd728d554953f44761167466466
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: Thu May 27 19:15:20 2021 +0000
URL:        https://gitweb.gentoo.org/proj/pms.git/commit/?id=a6094dbb

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..25ba28e 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