#!/bin/sh
# IFS field splitting of one line into positional parameters, 3000 times.
# Setting IFS here is the measurement itself, not a hazard.
list=a:b:c:d:e:f:g:h
i=0
n=0
while [ $i -lt 20000 ]; do
old=$IFS
IFS=:
set -- $list
IFS=$old
n=$((n + $#))
i=$((i + 1))
done
echo "$n"