xref: /freebsd/contrib/bmake/unit-tests/varmod-quote-dollar.mk (revision 13ec1e3155c7e9bf037b12af186351b7fa9b9450)
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