cpt

[ARCHIVED] Carbs Packaging Tools
git clone git://git.ckyln.com/~cem/cpt.git
Log | Files | Refs | README | LICENSE

commit 762a39bd7e1a221ea108d15839309e3a3b4c024c
parent 22855138ac5ad95e779db3830d08bd68fe9c0929
Author: Ethan Sommer <e5ten.arch@gmail.com>
Date:   Thu, 21 May 2020 20:07:25 -0400

kiss: remove non-POSIX printf * field width specifier

POSIX doesn't specify %*s for the printf command, with the rationale
that one can just put the variable there in place, do that.

Diffstat:
Mkiss | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/kiss b/kiss @@ -1495,8 +1495,8 @@ args() { # These are binary files so they should be ignored contains "readlink stat" "$path" && continue - printf '%b->%b %-*s ' "${color:+"\033[1;31m"}" "${color:+"\033[m"}" \ - "$max" "${path#*/kiss-}" + printf "%b->%b %-${max}s " "${color:+"\033[1;31m"}" "${color:+"\033[m"}" \ + "${path#*/kiss-}" sed -n 's/^# *//;2p' "$(command -v "kiss-$path")" done | sort -uk1 >&2