From a85a7c74c7611e85748b0b6f0cab2a733fd9c200 Mon Sep 17 00:00:00 2001 From: Michał Górny Date: Thu, 23 Feb 2017 20:35:52 +0100 Subject: toolchain-funcs.eclass: Remove meaningless eval The 'eval' as used does not do anything. The function name is expanded anyway. --- eclass/toolchain-funcs.eclass | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/eclass/toolchain-funcs.eclass b/eclass/toolchain-funcs.eclass index dec786994f2d..a0c359a950b2 100644 --- a/eclass/toolchain-funcs.eclass +++ b/eclass/toolchain-funcs.eclass @@ -1,4 +1,4 @@ -# Copyright 1999-2015 Gentoo Foundation +# Copyright 1999-2017 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # @ECLASS: toolchain-funcs.eclass @@ -168,8 +168,8 @@ tc-getBUILD_PKG_CONFIG() { tc-getBUILD_PROG PKG_CONFIG pkg-config "$@"; } tc-export() { local var for var in "$@" ; do - [[ $(type -t tc-get${var}) != "function" ]] && die "tc-export: invalid export variable '${var}'" - eval tc-get${var} > /dev/null + [[ $(type -t "tc-get${var}") != "function" ]] && die "tc-export: invalid export variable '${var}'" + "tc-get${var}" > /dev/null done } -- cgit v1.2.3-18-g5258