summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2017-02-23 20:35:52 +0100
committerMichał Górny <mgorny@gentoo.org>2017-03-08 08:35:36 +0100
commita85a7c74c7611e85748b0b6f0cab2a733fd9c200 (patch)
treef39ca4563bdeecc0e230347e5e9e1b3958abf12f
parentruby-ng.eclass: Replace unnecessary 'eval ls' with array fnexp (diff)
downloadgentoo-a85a7c74c7611e85748b0b6f0cab2a733fd9c200.tar.gz
gentoo-a85a7c74c7611e85748b0b6f0cab2a733fd9c200.tar.bz2
gentoo-a85a7c74c7611e85748b0b6f0cab2a733fd9c200.zip
toolchain-funcs.eclass: Remove meaningless eval
The 'eval' as used does not do anything. The function name is expanded anyway.
-rw-r--r--eclass/toolchain-funcs.eclass6
1 files changed, 3 insertions, 3 deletions
diff --git a/eclass/toolchain-funcs.eclass b/eclass/toolchain-funcs.eclass
index dec786994f2..a0c359a950b 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
}