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