commit: 93015498cc2167315dbde003ecd6b5cdef6a96bb Author: Kerin Millar <kfm <AT> plushkava <DOT> net> AuthorDate: Wed Feb 15 05:20:36 2023 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Wed Feb 15 07:32:39 2023 +0000 URL: https://gitweb.gentoo.org/proj/gentoo-functions.git/commit/?id=93015498
Fix an SC2059 warning in ebegin() The SC2059 warning concerns potential injection into a format string. At this point, and for the first ever time, functions.sh raises no warnings in shellcheck Signed-off-by: Kerin Millar <kfm <AT> plushkava.net> Signed-off-by: Sam James <sam <AT> gentoo.org> functions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions.sh b/functions.sh index c1ff6a4..4f94ab0 100644 --- a/functions.sh +++ b/functions.sh @@ -229,7 +229,7 @@ _eend() fi if [ -n "${genfun_endcol}" ]; then - printf "${genfun_endcol} ${msg}\n" + printf '%s %b\n' "${genfun_endcol}" "${msg}" else [ "${genfun_lastcall}" = ebegin ] || genfun_lastbegun_strlen=0 printf "%$(( genfun_cols - genfun_lastbegun_strlen - 6 ))s%b\n" '' "${msg}"