xref: /freebsd/bin/sh/tests/expansion/question2.0 (revision b88cc53d4ddda4486683ee2121f131b10ed21c30)
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