summary refs log tree commit diff
path: root/bin/cash/tests/expansion/cmdsubst23.0
diff options
context:
space:
mode:
Diffstat (limited to 'bin/cash/tests/expansion/cmdsubst23.0')
-rw-r--r--bin/cash/tests/expansion/cmdsubst23.05
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/cash/tests/expansion/cmdsubst23.0 b/bin/cash/tests/expansion/cmdsubst23.0
new file mode 100644
index 00000000..9ffb2eed
--- /dev/null
+++ b/bin/cash/tests/expansion/cmdsubst23.0
@@ -0,0 +1,5 @@
+# $FreeBSD: releng/12.0/bin/sh/tests/expansion/cmdsubst23.0 315005 2017-03-10 16:04:00Z jilles $
+
+unset n
+x=abcd
+[ "X${n#$(echo a)}X${x#$(echo ab)}X$(echo abc)X" = XXcdXabcX ]