From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 7A2B81382C5 for ; Mon, 5 Feb 2018 04:23:04 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8BD74E09E1; Mon, 5 Feb 2018 04:23:03 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 64B3CE09E1 for ; Mon, 5 Feb 2018 04:23:02 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 5F0BC335C34 for ; Mon, 5 Feb 2018 04:23:01 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id C5C1819B for ; Mon, 5 Feb 2018 04:22:59 +0000 (UTC) From: "Zac Medico" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Zac Medico" Message-ID: <1517804566.2a5be51673654d9605308f8c80d5588f67a5e8e0.zmedico@gentoo> Subject: [gentoo-commits] proj/portage:master commit in: bin/ X-VCS-Repository: proj/portage X-VCS-Files: bin/etc-update X-VCS-Directories: bin/ X-VCS-Committer: zmedico X-VCS-Committer-Name: Zac Medico X-VCS-Revision: 2a5be51673654d9605308f8c80d5588f67a5e8e0 X-VCS-Branch: master Date: Mon, 5 Feb 2018 04:22:59 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 30e0ea8b-1437-4a99-9fc2-2fe6bbc3d906 X-Archives-Hash: f5c1c68b154dd2e98e4a7898750f0d22 commit: 2a5be51673654d9605308f8c80d5588f67a5e8e0 Author: Zac Medico gentoo org> AuthorDate: Mon Feb 5 04:22:05 2018 +0000 Commit: Zac Medico gentoo org> CommitDate: Mon Feb 5 04:22:46 2018 +0000 URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=2a5be516 etc-update: quote array expansions Reported-by: R0b0t1 gmail.com> bin/etc-update | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/etc-update b/bin/etc-update index ea69f1478..7b48be215 100755 --- a/bin/etc-update +++ b/bin/etc-update @@ -767,7 +767,7 @@ portage_vars=( ) if type -P portageq > /dev/null; then - eval $(${PORTAGE_PYTHON:+"${PORTAGE_PYTHON}"} "$(type -P portageq)" envvar -v ${portage_vars[@]}) + eval $(${PORTAGE_PYTHON:+"${PORTAGE_PYTHON}"} "$(type -P portageq)" envvar -v "${portage_vars[@]}") else [[ $OS_FAMILY == 'gentoo' ]] && die "missing portageq" fi @@ -801,7 +801,7 @@ cfg_vars=( mode ) # default them all to "" -eval ${cfg_vars[@]/%/=} +eval "${cfg_vars[@]/%/=}" # then extract them all from the conf in one shot # (ugly var at end is due to printf appending a '|' to last item) get_config "($(printf '%s|' "${cfg_vars[@]}")NOVARFOROLDMEN)" @@ -846,7 +846,7 @@ if ${NONINTERACTIVE_MV} ; then fi if ${VERBOSE} ; then - for v in ${portage_vars[@]} ${cfg_vars[@]} TMP SCAN_PATHS ; do + for v in "${portage_vars[@]}" "${cfg_vars[@]}" TMP SCAN_PATHS ; do echo "${v}=${!v}" done fi