xref: /freebsd/bin/sh/tests/expansion/cmdsubst18.0 (revision 4928135658a9d0eaee37003df6137ab363fcb0b4)
1# $FreeBSD$
2
3x=X
4unset n
5r=${x+$(echo a)}${x-$(echo b)}${n+$(echo c)}${n-$(echo d)}$(echo e)
6[ "$r" = aXde ]
7