xref: /freebsd/bin/sh/tests/expansion/cmdsubst18.0 (revision 924226fba12cc9a228c73b956e1b7fa24c60b055)
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