From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 9874C15806E for ; Wed, 7 Jun 2023 07:16:05 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D307FE0863; Wed, 7 Jun 2023 07:16:04 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B3F1EE0863 for ; Wed, 7 Jun 2023 07:16:04 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id A72F4335D56 for ; Wed, 7 Jun 2023 07:16:03 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 12111990 for ; Wed, 7 Jun 2023 07:16:02 +0000 (UTC) From: "Ulrich Müller" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Ulrich Müller" Message-ID: <1686121570.5fc12989359ff6698ede5dc67e69ccf740aa4f4c.ulm@gentoo> Subject: [gentoo-commits] proj/portage:master commit in: bin/ebuild-helpers/ X-VCS-Repository: proj/portage X-VCS-Files: bin/ebuild-helpers/dosym X-VCS-Directories: bin/ebuild-helpers/ X-VCS-Committer: ulm X-VCS-Committer-Name: Ulrich Müller X-VCS-Revision: 5fc12989359ff6698ede5dc67e69ccf740aa4f4c X-VCS-Branch: master Date: Wed, 7 Jun 2023 07:16:02 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: bf1490af-33a6-410a-b48c-038e26963ea1 X-Archives-Hash: 858529789ff977139b0e4d6515070223 commit: 5fc12989359ff6698ede5dc67e69ccf740aa4f4c Author: Ulrich Müller gentoo org> AuthorDate: Wed Jun 7 07:06:10 2023 +0000 Commit: Ulrich Müller gentoo 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 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