]> git.saurik.com Git - apple/shell_cmds.git/blobdiff - sh/tests/execution/func3.0
shell_cmds-198.tar.gz
[apple/shell_cmds.git] / sh / tests / execution / func3.0
diff --git a/sh/tests/execution/func3.0 b/sh/tests/execution/func3.0
new file mode 100644 (file)
index 0000000..e0ed581
--- /dev/null
@@ -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
+: