[hackers] [scroll] better quoting in scrollup testing shell script || Jan Klemkow

From: <git_AT_suckless.org>
Date: Sun, 26 Apr 2020 22:40:35 +0200 (CEST)

commit c4b7051d0af4482b594ce065fe77e9f9c0935893
Author: Jan Klemkow <j.klemkow_AT_wemelug.de>
AuthorDate: Sun Apr 26 22:38:40 2020 +0200
Commit: Jan Klemkow <j.klemkow_AT_wemelug.de>
CommitDate: Sun Apr 26 22:40:23 2020 +0200

    better quoting in scrollup testing shell script

diff --git a/up.sh b/up.sh
index 69b766c..fa28a80 100755
--- a/up.sh
+++ b/up.sh
_AT_@ -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
Received on Sun Apr 26 2020 - 22:40:35 CEST

This archive was generated by hypermail 2.3.0 : Sun Apr 26 2020 - 22:48:36 CEST