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