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