From: Michał Górny Date: Thu, 23 Feb 2017 19:35:52 +0000 (+0100) Subject: toolchain-funcs.eclass: Remove meaningless eval X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=a85a7c74c7611e85748b0b6f0cab2a733fd9c200;p=gentoo.git toolchain-funcs.eclass: Remove meaningless eval The 'eval' as used does not do anything. The function name is expanded anyway. --- 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 }