summary refs log tree commit diff
path: root/bin/cash/tests/expansion/cmdsubst18.0
blob: 5b108896b97549cd3201fdbe2814b54c123b7810 (plain) (blame)
1
2
3
4
5
6
# $FreeBSD: releng/12.0/bin/sh/tests/expansion/cmdsubst18.0 314637 2017-03-03 22:46:20Z jilles $

x=X
unset n
r=${x+$(echo a)}${x-$(echo b)}${n+$(echo c)}${n-$(echo d)}$(echo e)
[ "$r" = aXde ]