From 71b5da696cc59e22339b5db497032821e631a54f Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Sat, 1 Dec 2012 20:30:30 -0500 Subject: mkinitcpio: use fancy unicode in -L output Denote deprecation with unicode superscript footnote markers. Yes, this inherently limits us to 9 deprecation notices in its current form, but there really shouldn't ever be so many deprecated items at once. Signed-off-by: Dave Reisner --- mkinitcpio | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mkinitcpio b/mkinitcpio index e7b19c1..013bc46 100755 --- a/mkinitcpio +++ b/mkinitcpio @@ -138,6 +138,7 @@ hook_help() { hook_list() { local n p hook resolved local -a paths hooklist depr + local ss_ordinals=(¹ ² ³ ⁴ ⁵ ⁶ ⁷ ⁸ ⁹) IFS=: read -ra paths <<<"$_d_install" @@ -165,7 +166,7 @@ hook_list() { n=$(( ${#depr[*]} - 1 )) fi - hook=$hook[$n] + hook=$hook${ss_ordinals[n]} fi hooklist+=("${hook##*/}") @@ -178,7 +179,8 @@ hook_list() { if (( ${#depr[*]} )); then echo for p in "${!depr[@]}"; do - printf "[%s]: This hook is deprecated in favor of '%s'\n" "$p" "${depr[p]}" + printf "%s This hook is deprecated in favor of '%s'\n" \ + "${ss_ordinals[p]}" "${depr[p]}" done fi } -- cgit v1.2.3-24-g4f1b