xref: /freebsd/contrib/bmake/unit-tests/varmod-quote-dollar.mk (revision 9f45a3c8c82ffead7044ae836d9257113c630d3b)
1# $NetBSD: varmod-quote-dollar.mk,v 1.3 2022/01/22 17:10:51 rillig Exp $
2#
3# Tests for the :q variable modifier, which quotes the string for the shell
4# and doubles dollar signs, to prevent them from being interpreted by a
5# child process of make.
6
7ASCII_CHARS=	${.newline} !"\#$$%&'()*+,-./09:;<=>?@AZ[\]^_`az{|}~
8
9all:
10	@${MAKE} -r -f /dev/null CHARS=${ASCII_CHARS:q} -V CHARS
11