diff options
author | Zac Medico <zmedico@gentoo.org> | 2007-11-24 05:42:10 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2007-11-24 05:42:10 +0000 |
commit | dc35b3d263cff436e1fbded1cc840eb3b44a9073 (patch) | |
tree | 84ab1b7b1a8301d79bc2e7ed39763da15cf42ae4 | |
parent | ec62257fabc320237b42f7f74a4b73b75e9db972 (diff) | |
download | portage-dc35b3d263cff436e1fbded1cc840eb3b44a9073.tar.gz portage-dc35b3d263cff436e1fbded1cc840eb3b44a9073.tar.bz2 portage-dc35b3d263cff436e1fbded1cc840eb3b44a9073.zip |
Fix quoting to work properly with eval.
svn path=/main/trunk/; revision=8640
-rwxr-xr-x | bin/ebuild.sh | 6 |
1 files changed, 3 insertions, 3 deletions
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 |