summary refs log tree commit diff
path: root/bin/cash/tests/expansion/cmdsubst21.0
diff options
context:
space:
mode:
Diffstat (limited to 'bin/cash/tests/expansion/cmdsubst21.0')
-rw-r--r--bin/cash/tests/expansion/cmdsubst21.06
1 files changed, 6 insertions, 0 deletions
diff --git a/bin/cash/tests/expansion/cmdsubst21.0 b/bin/cash/tests/expansion/cmdsubst21.0
new file mode 100644
index 00000000..d34f9352
--- /dev/null
+++ b/bin/cash/tests/expansion/cmdsubst21.0
@@ -0,0 +1,6 @@
+# $FreeBSD: releng/12.0/bin/sh/tests/expansion/cmdsubst21.0 314686 2017-03-04 22:58:34Z jilles $
+
+set -T
+trapped=''
+trap "trapped=x$trapped" TERM
+[ "x$($SH -c "kill $$")y" = xy ] && [ "$trapped" = x ]