commit c4b7051d0af4482b594ce065fe77e9f9c0935893
parent c5cbf1ab33faeaea951077a9a9c69d80dfd204b9
Author: Jan Klemkow <j.klemkow@wemelug.de>
Date: Sun, 26 Apr 2020 22:38:40 +0200
better quoting in scrollup testing shell script
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/up.sh b/up.sh
@@ -4,12 +4,12 @@ set -eu
export POSIXLY_CORRECT=1
i=1
-while test $i -lt 50; do
- echo $i
+while test "$i" -lt 50; do
+ echo "$i"
i=$((i + 1))
done > tmp.log
-(sleep 1; printf "\033[5;2~"; sleep 1; ) \
+(sleep 1; printf '\033[5;2~'; sleep 1; ) \
| ./ptty ./scroll tail -fn 50 tmp.log > out.log
cmp out.log up.log