summaryrefslogtreecommitdiffstats
path: root/usr.bin/make/tests/shell/builtin/Makefile.test
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/make/tests/shell/builtin/Makefile.test')
-rw-r--r--usr.bin/make/tests/shell/builtin/Makefile.test18
1 files changed, 18 insertions, 0 deletions
diff --git a/usr.bin/make/tests/shell/builtin/Makefile.test b/usr.bin/make/tests/shell/builtin/Makefile.test
new file mode 100644
index 0000000..0376478
--- /dev/null
+++ b/usr.bin/make/tests/shell/builtin/Makefile.test
@@ -0,0 +1,18 @@
+#
+# In compat mode (the default without -j) a line that contains no shell
+# meta characters and no shell builtins is not passed to the shell but
+# executed directly. In our example the ls line without meta characters
+# will really execute ls, while the line with meta characters will execute
+# our special shell.
+#
+# $FreeBSD$
+
+.SHELL: path="${.CURDIR}/sh"
+
+.PHONY: builtin no-builtin
+
+builtin:
+ @exec ls -d .
+
+no-builtin:
+ @ls -d .
OpenPOWER on IntegriCloud