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 B224D15800F for ; Wed, 15 Feb 2023 07:46:33 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A6D38E07A9; Wed, 15 Feb 2023 07:46:31 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 90DBBE07A9 for ; Wed, 15 Feb 2023 07:46:31 +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 C53C7335D72 for ; Wed, 15 Feb 2023 07:46:30 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 0BC0A8B3 for ; Wed, 15 Feb 2023 07:46:29 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1676446360.c7d99dc38a647899e8dad2e036439ecf4b1fdf2b.sam@gentoo> Subject: [gentoo-commits] proj/gentoo-functions:master commit in: / X-VCS-Repository: proj/gentoo-functions X-VCS-Files: functions.sh X-VCS-Directories: / X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: c7d99dc38a647899e8dad2e036439ecf4b1fdf2b X-VCS-Branch: master Date: Wed, 15 Feb 2023 07:46:29 +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: f2f55689-11cc-407c-b34c-d2f25b1f122f X-Archives-Hash: 695d5c6b9c11c1986015f00e9ed24165 commit: c7d99dc38a647899e8dad2e036439ecf4b1fdf2b Author: Kerin Millar plushkava net> AuthorDate: Wed Feb 15 06:27:54 2023 +0000 Commit: Sam James gentoo org> CommitDate: Wed Feb 15 07:32:40 2023 +0000 URL: https://gitweb.gentoo.org/proj/gentoo-functions.git/commit/?id=c7d99dc3 Don't use %b to format the "[ ok ]" and "[ !! ]" strings in _eend() The success/failure strings were once injected into format strings. The effect of doing so does not need to be mimicked because, even where _eend() incororates ECMA-48 sequences, they are always in a raw form and do not require decoding. Signed-off-by: Kerin Millar plushkava.net> Signed-off-by: Sam James gentoo.org> functions.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/functions.sh b/functions.sh index 4f94ab0..151775f 100644 --- a/functions.sh +++ b/functions.sh @@ -229,10 +229,10 @@ _eend() fi if [ -n "${genfun_endcol}" ]; then - printf '%s %b\n' "${genfun_endcol}" "${msg}" + printf '%s %s\n' "${genfun_endcol}" "${msg}" else [ "${genfun_lastcall}" = ebegin ] || genfun_lastbegun_strlen=0 - printf "%$(( genfun_cols - genfun_lastbegun_strlen - 6 ))s%b\n" '' "${msg}" + printf "%$(( genfun_cols - genfun_lastbegun_strlen - 6 ))s%s\n" '' "${msg}" fi return "${retval}"