From 18fbe566712997441aeb81a7eaac0dcea569d33e Mon Sep 17 00:00:00 2001 From: merakor Date: Sun, 24 May 2020 00:11:50 +0000 Subject: 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. FossilOrigin-Name: be926ff4e02f12bcebbedd725ab8d70d2abc97e96f88f615cff9ad7e1d90fe31 --- kiss | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kiss b/kiss index 6d3657a..a013660 100755 --- 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 -- cgit v1.2.3