xref: /freebsd/bin/sh/tests/builtins/command11.0 (revision 5ca8e32633c4ffbbcd6762e5888b6a4ba0708c6c)
1
2failures=0
3
4check() {
5	if ! eval "[ $* ]"; then
6		echo "Failed: $*"
7		: $((failures += 1))
8	fi
9}
10
11check '"$({ command eval \{ shift x\; \} 2\>/dev/null; } >/dev/null; echo hi)" = hi'
12
13exit $((failures > 0))
14