diff options
Diffstat (limited to 'bin/cash/tests/expansion/cmdsubst18.0')
-rw-r--r-- | bin/cash/tests/expansion/cmdsubst18.0 | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bin/cash/tests/expansion/cmdsubst18.0 b/bin/cash/tests/expansion/cmdsubst18.0 new file mode 100644 index 00000000..5b108896 --- /dev/null +++ b/bin/cash/tests/expansion/cmdsubst18.0 @@ -0,0 +1,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 ] |