aboutsummaryrefslogtreecommitdiff
path: root/bin/sh/tests/execution/func3.0
diff options
context:
space:
mode:
Diffstat (limited to 'bin/sh/tests/execution/func3.0')
-rw-r--r--bin/sh/tests/execution/func3.07
1 files changed, 7 insertions, 0 deletions
diff --git a/bin/sh/tests/execution/func3.0 b/bin/sh/tests/execution/func3.0
new file mode 100644
index 000000000000..e0ed581f85ef
--- /dev/null
+++ b/bin/sh/tests/execution/func3.0
@@ -0,0 +1,7 @@
+# $FreeBSD$
+
+# This may fail when parsing or when defining the function, or the definition
+# may silently do nothing. In no event may the function be executed.
+
+${SH} -c 'unset() { echo overriding function executed, bad; }; v=1; unset v; exit "${v-0}"' 2>/dev/null
+: