See the tracker bug. if [[ ${REPLACING_VERSIONS} == 1.* ]] ; then Doesn't account for >1 value in RV.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0e75df216fd02d70c32ce8cac8b52690f879566f commit 0e75df216fd02d70c32ce8cac8b52690f879566f Author: Michał Górny <mgorny@gentoo.org> AuthorDate: 2017-10-03 18:26:47 +0000 Commit: Michał Górny <mgorny@gentoo.org> CommitDate: 2017-10-03 19:09:26 +0000 sys-apps/sandbox: Fix REPLACING_VERSIONS use Closes: https://bugs.gentoo.org/589518 sys-apps/sandbox/sandbox-2.12.ebuild | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-)