1# $FreeBSD$ 2 3unset dummyvar 4msg=`(: ${dummyvar?}) 2>&1` 5r=$? 6[ "$r" != 0 ] && case $msg in 7*dummyvar?* | *?dummyvar*) : ;; 8*) 9 printf 'Bad message: [%s]\n' "$msg" 10 exit 1 11esac 12