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 95C2D138350 for ; Sun, 26 Jan 2020 13:26:07 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C520DE086C; Sun, 26 Jan 2020 13:26:06 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (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 A0676E086C for ; Sun, 26 Jan 2020 13:26:06 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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 AD51534E237 for ; Sun, 26 Jan 2020 13:26:05 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 5CCB47B for ; Sun, 26 Jan 2020 13:26:04 +0000 (UTC) From: "Sergei Trofimovich" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sergei Trofimovich" Message-ID: <1580045034.4e9362688c95ac02bafc014a16bbfd399b86ca8c.slyfox@gentoo> Subject: [gentoo-commits] proj/gcc-config:master commit in: / X-VCS-Repository: proj/gcc-config X-VCS-Files: gcc-config X-VCS-Directories: / X-VCS-Committer: slyfox X-VCS-Committer-Name: Sergei Trofimovich X-VCS-Revision: 4e9362688c95ac02bafc014a16bbfd399b86ca8c X-VCS-Branch: master Date: Sun, 26 Jan 2020 13:26:04 +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-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 87cd5042-7136-460a-b0ee-1900b19e4a11 X-Archives-Hash: debbd38a5d05633b06765d0add8b3af5 commit: 4e9362688c95ac02bafc014a16bbfd399b86ca8c Author: Sergei Trofimovich gentoo org> AuthorDate: Sun Jan 26 13:23:54 2020 +0000 Commit: Sergei Trofimovich gentoo org> CommitDate: Sun Jan 26 13:23:54 2020 +0000 URL: https://gitweb.gentoo.org/proj/gcc-config.git/commit/?id=4e936268 gcc-config: fix numbered access to toolchains In commit bc80e12ab1 ("gcc-config: add basic version sorting support") i've missed the case of accessing toolchain by number: $ gcc-config -L 1 The change adds version sorting to numbered access as well. Reported-by: lekto o2.pl Bug: https://bugs.gentoo.org/706318 Signed-off-by: Sergei Trofimovich gentoo.org> gcc-config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc-config b/gcc-config index 1ab646b..8b4fd20 100755 --- a/gcc-config +++ b/gcc-config @@ -1015,7 +1015,7 @@ for x in "$@" ; do if [[ -z $(echo ${x} | tr -d '[:digit:]') ]] ; then # User gave us a # representing the profile i=1 - for y in "${GCC_ENV_D}"/* ; do + for y in $(version_sorted_paths "${GCC_ENV_D}"/*) ; do [[ -f ${y} ]] || continue [[ ${y} == */config* ]] && continue