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