- (djm) [regress/Makefile regress/integrity.sh] Make the integrity.sh test
   work on platforms without 'jot'
diff --git a/regress/integrity.sh b/regress/integrity.sh
index 2313568..f6e5c19 100644
--- a/regress/integrity.sh
+++ b/regress/integrity.sh
@@ -18,6 +18,10 @@
 # sshd-command for proxy (see test-exec.sh)
 cmd="sh ${SRC}/sshd-log-wrapper.sh ${SSHD} ${TEST_SSH_LOGFILE} -i -f $OBJ/sshd_proxy"
 
+jot() {
+	awk 'BEGIN { for (i = $2; i < $2 + $1; i++) { printf "%d\n", i } }'
+}
+set -x
 for m in $macs; do
 	trace "test $tid: mac $m"
 	elen=0
@@ -26,7 +30,8 @@
 	ecnt=0
 	skip=0
 	for off in $(jot $tries $startoffset); do
-		if [ $((skip--)) -gt 0 ]; then
+		skip=$((skip - 1))
+		if [ $skip -gt 0 ]; then
 			# avoid modifying the high bytes of the length
 			continue
 		fi