diff options
Diffstat (limited to 'shell_cmds/sh/tests/expansion/cmdsubst18.0')
-rw-r--r-- | shell_cmds/sh/tests/expansion/cmdsubst18.0 | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/shell_cmds/sh/tests/expansion/cmdsubst18.0 b/shell_cmds/sh/tests/expansion/cmdsubst18.0 new file mode 100644 index 0000000..2c3a1be --- /dev/null +++ b/shell_cmds/sh/tests/expansion/cmdsubst18.0 @@ -0,0 +1,6 @@ +# $FreeBSD: head/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 ] |