Add files from parent branch HEAD:
[pkgsrc.git] / regress / make-quoting / files / quoting.mk
1 # $NetBSD: quoting.mk,v 1.1.1.1 2005/05/15 21:10:16 rillig Exp $
2 #
3 # This file demonstrates various techniques for quoting variables when
4 # passing them to the shell.
5 #
6 # The third line revealed a bug in the NetBSD 3.0 shell, which discards
7 # the last argument under some circumstances when it is empty.
8 #
9
10 EVIL_STRING?=   "   "
11
12 .PHONY: all
13 all:
14         echo ${EVIL_STRING}
15         echo ${EVIL_STRING:Q}
16         echo "${EVIL_STRING}"
17         echo "${EVIL_STRING:Q}"
18         echo ${EVIL_STRING:Q}""
19         echo x${EVIL_STRING:Q} | sed 1s,.,,