1 # $FreeBSD: head/bin/sh/tests/expansion/arith5.0 206168 2010-04-04 16:48:33Z jilles $
6 if [ "$2" != "$3" ]; then
7 failures=$((failures+1))
8 echo "For $1, expected $3 actual $2"
13 check '$((1+${a:-$((7+2))}))' "$((1+${a:-$((7+2))}))" 10
14 check '$((1+${a:=$((2+2))}))' "$((1+${a:=$((2+2))}))" 5
17 exit $((failures != 0))