1
0
mirror of https://codeberg.org/kiss-community/kiss synced 2024-07-02 14:02:26 +00:00

Merge pull request #160 from E5ten/posix-printf

kiss: remove non-POSIX printf * field width specifier
This commit is contained in:
dylan 2020-05-22 08:58:09 +03:00 committed by GitHub
commit 495ae445fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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