summary refs log tree commit diff
path: root/bin/cash/tests/expansion/cmdsubst9.0
diff options
context:
space:
mode:
Diffstat (limited to 'bin/cash/tests/expansion/cmdsubst9.0')
-rw-r--r--bin/cash/tests/expansion/cmdsubst9.011
1 files changed, 11 insertions, 0 deletions
diff --git a/bin/cash/tests/expansion/cmdsubst9.0 b/bin/cash/tests/expansion/cmdsubst9.0
new file mode 100644
index 00000000..4a9a5094
--- /dev/null
+++ b/bin/cash/tests/expansion/cmdsubst9.0
@@ -0,0 +1,11 @@
+# $FreeBSD: releng/12.0/bin/sh/tests/expansion/cmdsubst9.0 216819 2010-12-30 15:04:59Z jilles $
+
+set -e
+
+cd /
+dummy=$(cd /bin)
+[ "$(pwd)" = / ]
+
+v=1
+dummy=$(eval v=2)
+[ "$v" = 1 ]