commit:     308630e439f40246333800fea11b731715bdd83f
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Thu Feb 23 17:01:47 2017 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Mar  8 07:35:32 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=308630e4

perl-functions.eclass: Replace unnecessary eval with ${!var}

 eclass/perl-functions.eclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/eclass/perl-functions.eclass b/eclass/perl-functions.eclass
index 8b798d65ac6..4f6872500c2 100644
--- a/eclass/perl-functions.eclass
+++ b/eclass/perl-functions.eclass
@@ -275,7 +275,7 @@ perl_check_env() {
                errored=1
 
                # Read ENV Value
-               eval "value=\$$i";
+               value=${!i};
 
                # Print ENV name/value pair
                if [ -n "${I_KNOW_WHAT_I_AM_DOING}" ]; then

Reply via email to