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 <u...@gentoo.org> + + * bin/eselect.in (PATH): Don't append a spurious newline. + 2023-06-06 Ulrich Müller <u...@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