From f7f2189b06b649bc16b4e40a1992f3389e21372c Mon Sep 17 00:00:00 2001 From: Dylan Date: Fri, 29 Jan 2016 11:41:23 +1100 Subject: [PATCH] Swap all 'echo' to 'printf' for consistency --- fetch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fetch b/fetch index 2f44912b..5385fcc9 100755 --- a/fetch +++ b/fetch @@ -636,7 +636,7 @@ getshell () { ;; *"mksh"*) - shell+="$(mksh -c 'echo $KSH_VERSION')" + shell+="$(mksh -c 'printf "%s" "$KSH_VERSION"')" shell=${shell/ * KSH} ;; esac @@ -1939,7 +1939,7 @@ printinfo # Move the cursor to the bottom and Show the cursor if [ "$image" != "off" ]; then # Set cursor position dynamically based on height of ascii/text. - info_height="$(IFS=';' read -sdR -p $'\E[6n' ROW COL;echo "${ROW#*[}")" + info_height="$(IFS=';' read -sdR -p $'\E[6n' ROW COL; printf "%s" "${ROW#*[}")" [ "$lines" -lt "$info_height" ] && lines="$info_height" printf "%b%s" "\033[${lines}H\033[${prompt_height}A"