summary refs log tree commit diff
path: root/bin/cash/tests/parameters/env1.0
blob: b5891b61330e4035e5dc866a46ae043bd70912db (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
# $FreeBSD: releng/12.0/bin/sh/tests/parameters/env1.0 222957 2011-06-10 22:42:00Z jilles $

export key='must contain this'
unset x
r=$(ENV="\${x?\$key}" ${SH} -i +m 2>&1 >/dev/null <<\EOF
exit 0
EOF
) && case $r in
*"$key"*) true ;;
*) false ;;
esac