diff options
author | 2023-06-07 09:22:03 +0200 | |
---|---|---|
committer | 2023-06-07 09:22:03 +0200 | |
commit | 55bc97298c80da3a0b26fb44ee86ce6a27a4cc6a (patch) | |
tree | d79d86ce7ce3b7a289f103f080a7fb078a7fbadd | |
parent | Update version to 1.4.23 (diff) | |
download | eselect-55bc97298c80da3a0b26fb44ee86ce6a27a4cc6a.tar.gz eselect-55bc97298c80da3a0b26fb44ee86ce6a27a4cc6a.tar.bz2 eselect-55bc97298c80da3a0b26fb44ee86ce6a27a4cc6a.zip |
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@gentoo.org>
-rw-r--r-- | ChangeLog | 4 | ||||
-rwxr-xr-x | bin/eselect.in | 2 |
2 files changed, 5 insertions, 1 deletions
@@ -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 |