#!/bin/sh # A subshell for its own sake, 1500 times: fork, no external command. i=0 while [ $i -lt 3000 ]; do ( : ) i=$((i + 1)) done echo "$i"