summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-08-08 20:38:43 +0000
committerZac Medico <zmedico@gentoo.org>2008-08-08 20:38:43 +0000
commit23dc7b6793ed429f9b16ecbfaa78ed0a2d92a5bc (patch)
treeeac03a0a867488c5812ad2f662183128eb79901b
parenta706752d0278b1400f76c0869313f5e488185b00 (diff)
downloadportage-23dc7b6793ed429f9b16ecbfaa78ed0a2d92a5bc.tar.gz
portage-23dc7b6793ed429f9b16ecbfaa78ed0a2d92a5bc.tar.bz2
portage-23dc7b6793ed429f9b16ecbfaa78ed0a2d92a5bc.zip
Fix broken quoting in eval statements. Thanks to Arfrever.
svn path=/main/trunk/; revision=11354
-rwxr-xr-xbin/ebuild.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/ebuild.sh b/bin/ebuild.sh
index d0a01d12d..5cf3e0f92 100755
--- a/bin/ebuild.sh
+++ b/bin/ebuild.sh
@@ -1264,7 +1264,7 @@ EXPORT_FUNCTIONS() {
fi
while [ "$1" ]; do
debug-print "EXPORT_FUNCTIONS: ${1} -> ${ECLASS}_${1}"
- eval "$1() { ${ECLASS}_$1 "\$@" ; }" > /dev/null
+ eval "$1() { ${ECLASS}_$1 \"\$@\" ; }" > /dev/null
shift
done
}
@@ -1413,7 +1413,7 @@ _ebuild_phase_funcs() {
for x in pkg_nofetch src_unpack src_test ; do
[[ $(type -t $x) = function ]] || \
- eval "$x() { _eapi0_$x "$@" ; }"
+ eval "$x() { _eapi0_$x \"\$@\" ; }"
done
case $eapi in