env1.0 revision 222957
1259210Sjmmv# $FreeBSD: head/tools/regression/bin/sh/parameters/env1.0 222957 2011-06-10 22:42:00Z jilles $ 2259210Sjmmv 3259210Sjmmvexport key='must contain this' 4259210Sjmmvunset x 5259210Sjmmvr=$(ENV="\${x?\$key}" ${SH} -i +m 2>&1 >/dev/null <<\EOF 6259210Sjmmvexit 0 7259210SjmmvEOF 8259210Sjmmv) && case $r in 9259210Sjmmv*"$key"*) true ;; 10259210Sjmmv*) false ;; 11259210Sjmmvesac 12259210Sjmmv