Swap all 'echo' to 'printf' for consistency

This commit is contained in:
Dylan 2016-01-29 11:41:23 +11:00
parent 58d6df2b6a
commit f7f2189b06
1 changed files with 2 additions and 2 deletions

4
fetch
View File

@ -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"