commit fe9ce22d65c5e0effefc1f005c2cb4d860abb13e
Author:     Jan Klemkow <[email protected]>
AuthorDate: Sat Apr 25 21:15:04 2020 +0200
Commit:     Jan Klemkow <[email protected]>
CommitDate: Sat Apr 25 21:15:28 2020 +0200

    replace jot(1) with os independent shell code

diff --git a/up.sh b/up.sh
index a730f8c..8f4758c 100755
--- a/up.sh
+++ b/up.sh
@@ -3,7 +3,11 @@
 set -eu
 export POSIXLY_CORRECT=1
 
-jot 50 > tmp.log
+i=1
+while test $i -lt 50; do
+       print $i
+       i=$((i + 1))
+done > tmp.log
 
 (sleep 1; printf "\033[5;2~"; sleep 1; ) \
        | ./ptty ./scroll tail -fn 50 tmp.log > out.log

Reply via email to