In addition strict compliance the commit will take variable name
quoting, and $(command) substitution in use.
$ checkbashisms reset reset.033c
possible bashism in reset line 11 ('$[' should be '$(('):
bot=$[ ${LINES:-`tput lines`} - 1 ]
possible bashism in reset.033c line 11 (echo -e):
echo -e \\033c
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
tput rs1
tput rs2
tput rs3
-bot=$[ ${LINES:-`tput lines`} - 1 ]
-if test "$bot" -le "0"; then bot=24; fi
-tput csr 0 $bot
+bot=$((${LINES:-$(tput lines)} - 1))
+if test "${bot}" -le "0"; then bot=24; fi
+tput csr 0 ${bot}
tput rs1
tput rs2
tput rs3
-echo -e \\033c
+printf "\\033c\n"