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