#!/bin/sh -u # # $0 # # A script that loops until arithmetic overflow happens. # This happens at different points in different shells and on # different architectures. # # -IAN! idallen@ncf.ca June 2001 export PATH=/bin:/usr/bin umask 022 x=99 y=9 while [ "$x" -gt "$y" ]; do echo "test $x -gt $y worked okay" x="9$x" y="9$y" sleep 1 done echo "test $x -gt $y failed!" exit 0