diff options
author | Ulrich Müller <ulm@gentoo.org> | 2023-06-07 09:22:03 +0200 |
---|---|---|
committer | Ulrich Müller <ulm@gentoo.org> | 2023-06-07 09:22:03 +0200 |
commit | 55bc97298c80da3a0b26fb44ee86ce6a27a4cc6a (patch) | |
tree | d79d86ce7ce3b7a289f103f080a7fb078a7fbadd /bin | |
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>
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/eselect.in | 2 |
1 files changed, 1 insertions, 1 deletions
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 |