xref: /freebsd/bin/sh/tests/parameters/env1.0 (revision f5f40dd63bc7acbb5312b26ac1ea1103c12352a6)
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