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