[hackers] [scroll] replace jot(1) with os independent shell code || Jan Klemkow

From: <git_AT_suckless.org>
Date: Sat, 25 Apr 2020 21:15:40 +0200 (CEST)

commit fe9ce22d65c5e0effefc1f005c2cb4d860abb13e
Author: Jan Klemkow <j.klemkow_AT_wemelug.de>
AuthorDate: Sat Apr 25 21:15:04 2020 +0200
Commit: Jan Klemkow <j.klemkow_AT_wemelug.de>
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
_AT_@ -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
Received on Sat Apr 25 2020 - 21:15:40 CEST

This archive was generated by hypermail 2.3.0 : Sat Apr 25 2020 - 21:24:38 CEST