1
0
mirror of https://codeberg.org/kiss-community/kiss synced 2024-12-24 16:10:05 -07:00

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.
This commit is contained in:
Ethan Sommer 2020-05-21 20:07:25 -04:00
parent a02ad08ba0
commit 79ae82bd30

2
kiss
View File

@ -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
;;