# $NetBSD: quoting.mk,v 1.2 2006/06/29 13:35:18 rillig Exp $
#
# This file demonstrates various techniques for quoting variables when
# passing them to the shell.
#
# The third line revealed a bug in the NetBSD 3.0 shell, which discards
# the last argument under some circumstances when it is empty.
#

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,.,,