diff options
author | merakor <cem@ckyln.com> | 2020-05-24 00:11:50 +0000 |
---|---|---|
committer | merakor <cem@ckyln.com> | 2020-05-24 00:11:50 +0000 |
commit | 18fbe566712997441aeb81a7eaac0dcea569d33e (patch) | |
tree | 759daf39d187707b6340987f19a5348f584f8152 | |
parent | f457313ae8a91df74caf270ee93f8c50b819c1b9 (diff) | |
download | cpt-18fbe566712997441aeb81a7eaac0dcea569d33e.tar.gz |
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
-rwxr-xr-x | kiss | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |