commit: 5fc12989359ff6698ede5dc67e69ccf740aa4f4c Author: Ulrich Müller <ulm <AT> gentoo <DOT> org> AuthorDate: Wed Jun 7 07:06:10 2023 +0000 Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org> CommitDate: Wed Jun 7 07:06:10 2023 +0000 URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=5fc12989
dosym: Don't add a spurious newline to the path Bash's <<< operator will append a newline to the string, therefore use echo -n instead. Fixes: 65bb6ae01f359d82be453bf01a9e8f49171d8436 Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org> bin/ebuild-helpers/dosym | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/ebuild-helpers/dosym b/bin/ebuild-helpers/dosym index 9ed27b8ce..c87cf42b2 100755 --- a/bin/ebuild-helpers/dosym +++ b/bin/ebuild-helpers/dosym @@ -33,7 +33,7 @@ if [[ ${option_r} ]]; then dosym_canonicalize() { local path slash i prev out IFS=/ - read -r -d '' -a path <<< "${1}" + read -r -d '' -a path < <(echo -n "${1}") [[ ${1} == /* ]] && slash=/ while true; do