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