From: Zac Medico Date: Sat, 24 Nov 2007 05:43:13 +0000 (-0000) Subject: Fix quoting to work properly with eval. (trunk r8640) X-Git-Tag: v2.1.4~223 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=da6c2632570de352e4d262c20198f6d306cbbf30;p=portage.git Fix quoting to work properly with eval. (trunk r8640) svn path=/main/branches/2.1.2/; revision=8641 --- diff --git a/bin/ebuild.sh b/bin/ebuild.sh index ab663d028..d5b770dd8 100755 --- a/bin/ebuild.sh +++ b/bin/ebuild.sh @@ -1623,14 +1623,14 @@ elif ! hasq ${EBUILD_PHASE} depend && [ -f "${T}"/environment ] ; then fi # Colon separated SANDBOX_* variables need to be cumulative. for x in SANDBOX_DENY SANDBOX_READ SANDBOX_PREDICT SANDBOX_WRITE ; do - eval PORTAGE_${x}="${!x}" + eval PORTAGE_${x}=\${!x} done source "${T}"/environment for x in SANDBOX_DENY SANDBOX_PREDICT SANDBOX_READ SANDBOX_WRITE ; do eval y=\${PORTAGE_${x}} if [ "${y}" != "${!x}" ] ; then - eval export ${x}=$(echo -n "${y}:${!x}" | tr ":" "\0" | \ - sort -z -u | tr "\0" ":") + eval export ${x}=\"$(echo -n "${y}:${!x}" | tr ":" "\0" | \ + sort -z -u | tr "\0" ":")\" fi unset PORTAGE_${x} done