summaryrefslogtreecommitdiffstats
path: root/usr.bin/make/tests/shell/meta/Makefile.test
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/make/tests/shell/meta/Makefile.test')
-rw-r--r--usr.bin/make/tests/shell/meta/Makefile.test18
1 files changed, 18 insertions, 0 deletions
diff --git a/usr.bin/make/tests/shell/meta/Makefile.test b/usr.bin/make/tests/shell/meta/Makefile.test
new file mode 100644
index 0000000..bcf19d0
--- /dev/null
+++ b/usr.bin/make/tests/shell/meta/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="${.OBJDIR}/sh"
+
+.PHONY: meta no-meta
+
+meta:
+ @ls *
+
+no-meta:
+ @ls -d .
OpenPOWER on IntegriCloud