public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Ulrich Müller" <ulm@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/eselect:master commit in: bin/, /
Date: Wed,  7 Jun 2023 07:29:42 +0000 (UTC)	[thread overview]
Message-ID: <1686122523.55bc97298c80da3a0b26fb44ee86ce6a27a4cc6a.ulm@gentoo> (raw)

commit:     55bc97298c80da3a0b26fb44ee86ce6a27a4cc6a
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Wed Jun  7 07:22:03 2023 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> 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 <ulm <AT> 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  <ulm@gentoo.org>
+
+	* bin/eselect.in (PATH): Don't append a spurious newline.
+
 2023-06-06  Ulrich Müller  <ulm@gentoo.org>
 
 	* 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


             reply	other threads:[~2023-06-07  7:29 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-07  7:29 Ulrich Müller [this message]
  -- strict thread matches above, loose matches on Subject: below --
2023-07-08  6:20 [gentoo-commits] proj/eselect:master commit in: bin/, / Ulrich Müller
2023-06-07  8:50 Ulrich Müller
2023-06-05 18:34 Ulrich Müller
2023-03-20 17:11 Ulrich Müller
2023-02-28 18:08 Ulrich Müller
2023-02-27 17:40 Ulrich Müller
2023-02-27  7:28 Ulrich Müller
2022-01-08 20:53 Ulrich Müller
2016-01-27 19:35 Ulrich Müller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1686122523.55bc97298c80da3a0b26fb44ee86ce6a27a4cc6a.ulm@gentoo \
    --to=ulm@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox