From 79ae82bd30265126723ed0185e52dff3a61e358d Mon Sep 17 00:00:00 2001 From: Ethan Sommer Date: Thu, 21 May 2020 20:07:25 -0400 Subject: [PATCH] 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. --- kiss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kiss b/kiss index e081c87..1f99ef0 100755 --- a/kiss +++ b/kiss @@ -1519,7 +1519,7 @@ args() { done for path do - printf '%b->%b %-*s ' "$lcol" "$lclr" "$max" "${path#*/kiss-}" + printf "%b->%b %-${max}s " "$lcol" "$lclr" "${path#*/kiss-}" sed -n 's/^# *//;2p' "$(command -v "kiss-$path")" done | sort -uk1 >&2 ;;