summaryrefslogtreecommitdiff
path: root/regress/make-quoting/files/quoting.mk
diff options
context:
space:
mode:
Diffstat (limited to 'regress/make-quoting/files/quoting.mk')
-rw-r--r--regress/make-quoting/files/quoting.mk16
1 files changed, 16 insertions, 0 deletions
diff --git a/regress/make-quoting/files/quoting.mk b/regress/make-quoting/files/quoting.mk
new file mode 100644
index 00000000000..170aa8e0977
--- /dev/null
+++ b/regress/make-quoting/files/quoting.mk
@@ -0,0 +1,16 @@
+# $NetBSD: quoting.mk,v 1.1.1.1 2005/05/15 21:10:16 rillig Exp $
+#
+# This file demonstrates various techniques for quoting variables when
+# passing them to the shell.
+#
+
+EVIL_STRING?= " "
+
+.PHONY: all
+all:
+ echo ${EVIL_STRING}
+ echo ${EVIL_STRING:Q}
+ echo "${EVIL_STRING}"
+ echo "${EVIL_STRING:Q}"
+ echo ${EVIL_STRING:Q}""
+ echo x${EVIL_STRING:Q} | sed 1s,.,,