aboutsummaryrefslogtreecommitdiff
path: root/kiss
diff options
context:
space:
mode:
authormerakor <cem@ckyln.com>2020-05-24 00:11:50 +0000
committermerakor <cem@ckyln.com>2020-05-24 00:11:50 +0000
commit18fbe566712997441aeb81a7eaac0dcea569d33e (patch)
tree759daf39d187707b6340987f19a5348f584f8152 /kiss
parentf457313ae8a91df74caf270ee93f8c50b819c1b9 (diff)
downloadcpt-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
Diffstat (limited to 'kiss')
-rwxr-xr-xkiss4
1 files 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