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.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id D743815806E for ; Wed, 7 Jun 2023 07:29:45 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2757CE0801; Wed, 7 Jun 2023 07:29:45 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 10B27E0801 for ; Wed, 7 Jun 2023 07:29:45 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 4B91C340C77 for ; Wed, 7 Jun 2023 07:29:44 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id B2509990 for ; Wed, 7 Jun 2023 07:29:42 +0000 (UTC) From: "Ulrich Müller" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Ulrich Müller" Message-ID: <1686122523.55bc97298c80da3a0b26fb44ee86ce6a27a4cc6a.ulm@gentoo> Subject: [gentoo-commits] proj/eselect:master commit in: bin/, / X-VCS-Repository: proj/eselect X-VCS-Files: ChangeLog bin/eselect.in X-VCS-Directories: bin/ / X-VCS-Committer: ulm X-VCS-Committer-Name: Ulrich Müller X-VCS-Revision: 55bc97298c80da3a0b26fb44ee86ce6a27a4cc6a X-VCS-Branch: master Date: Wed, 7 Jun 2023 07:29:42 +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: aa3c0732-f157-46e9-9a2b-9101a4dce48c X-Archives-Hash: a3992acabadae4d47de7c644e9cbe4b8 commit: 55bc97298c80da3a0b26fb44ee86ce6a27a4cc6a Author: Ulrich Müller gentoo org> AuthorDate: Wed Jun 7 07:22:03 2023 +0000 Commit: Ulrich Müller gentoo org> CommitDate: Wed Jun 7 07:22:03 2023 +0000 URL: https://gitweb.gentoo.org/proj/eselect.git/commit/?id=55bc9729 Don't append a spurious newline to PATH * bin/eselect.in (PATH): Don't append a spurious newline. Fixes: 81dc05871392f5acbf5fadb5bb1991c737e42a5f Signed-off-by: Ulrich Müller gentoo.org> ChangeLog | 4 ++++ bin/eselect.in | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index b0ed346..ef5914e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2023-06-07 Ulrich Müller + + * bin/eselect.in (PATH): Don't append a spurious newline. + 2023-06-06 Ulrich Müller * configure.ac: Update version to 1.4.23. diff --git a/bin/eselect.in b/bin/eselect.in index 483a572..41d53d7 100755 --- a/bin/eselect.in +++ b/bin/eselect.in @@ -62,7 +62,7 @@ umask +rx # Sanitise PATH: We don't want to execute Portage's internal helpers # if we're called from an ebuild. IFS=: -read -r -d '' -a path <<<"${PATH}" +read -r -d '' -a path < <(echo -n "${PATH}") for i in "${!path[@]}"; do [[ ${path[i]} == */portage?(/*)/ebuild-helpers?(/*) ]] && unset "path[i]" done