Use builtin arithmetic expansion feature to replace external expr command to triger tst.sh in parallel ASAP

This commit is contained in:
Lipeng Zhu 2023-02-08 19:27:06 -05:00 committed by Glenn Strauss
parent fb4521ca2d
commit 6705203ac0

View File

@ -17,7 +17,7 @@ ID="@(#)multi.sh:3.4 -- 5/15/91 19:30:24";
instance=1
while [ $instance -le $1 ]; do
/bin/sh "$UB_BINDIR/tst.sh" &
instance=`expr $instance + 1`
instance=$(($instance + 1))
done
wait