Skip to content

Commit 6705203

Browse files
zhulipenggstrauss
authored andcommitted
Use builtin arithmetic expansion feature to replace external expr command to triger tst.sh in parallel ASAP
1 parent fb4521c commit 6705203

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

UnixBench/pgms/multi.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ ID="@(#)multi.sh:3.4 -- 5/15/91 19:30:24";
1717
instance=1
1818
while [ $instance -le $1 ]; do
1919
/bin/sh "$UB_BINDIR/tst.sh" &
20-
instance=`expr $instance + 1`
20+
instance=$(($instance + 1))
2121
done
2222
wait
2323

0 commit comments

Comments
 (0)