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