summaryrefslogtreecommitdiffstats
path: root/tools/regression
diff options
context:
space:
mode:
authorjilles <jilles@FreeBSD.org>2010-12-28 13:28:24 +0000
committerjilles <jilles@FreeBSD.org>2010-12-28 13:28:24 +0000
commit713ef02a1f782c52b5a7a985ce0f49312efd9a4d (patch)
tree1738ee903ef380fedf52a82c7ea4c2ac68689146 /tools/regression
parent5fb7e0486ccab134af174e9583417825e30f2f26 (diff)
downloadFreeBSD-src-713ef02a1f782c52b5a7a985ce0f49312efd9a4d.zip
FreeBSD-src-713ef02a1f782c52b5a7a985ce0f49312efd9a4d.tar.gz
sh: Make expansion errors in optimized command substitution non-fatal.
Command substitutions consisting of a single simple command are executed in the main shell process but this should be invisible apart from performance and very few exceptions such as $(trap).
Diffstat (limited to 'tools/regression')
-rw-r--r--tools/regression/bin/sh/expansion/cmdsubst5.05
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/regression/bin/sh/expansion/cmdsubst5.0 b/tools/regression/bin/sh/expansion/cmdsubst5.0
new file mode 100644
index 0000000..afca371
--- /dev/null
+++ b/tools/regression/bin/sh/expansion/cmdsubst5.0
@@ -0,0 +1,5 @@
+# $FreeBSD$
+
+unset v
+exec 2>/dev/null
+! y=$(: ${v?})
OpenPOWER on IntegriCloud