xref: /freebsd/bin/sh/tests/expansion/cmdsubst12.0 (revision 780fb4a2fa9a9aee5ac48a60b790f567c0dc13e9)
1# $FreeBSD$
2
3f() {
4	echo x$(printf foo >&2)y
5}
6[ "$(f 2>&1)" = "fooxy" ]
7