xref: /freebsd/bin/sh/tests/parameters/env1.0 (revision 39ee7a7a6bdd1557b1c3532abf60d139798ac88b)
1# $FreeBSD$
2
3export key='must contain this'
4unset x
5r=$(ENV="\${x?\$key}" ${SH} -i +m 2>&1 >/dev/null <<\EOF
6exit 0
7EOF
8) && case $r in
9*"$key"*) true ;;
10*) false ;;
11esac
12