1 # $NetBSD: varname-dot-newline.mk,v 1.3 2020/08/19 05:51:18 rillig Exp $
3 # Tests for the special .newline variable.
5 # Contrary to the special variable named "" that is used in expressions like
6 # ${:Usome-value}, the variable ".newline" is not protected against
7 # modification. Nobody exploits that though.
13 .if ${.newline} == ${NEWLINE}
14 .info The .newline variable cannot be overwritten. Good.
16 .info The .newline variable can be overwritten. Just don't do that.
19 # Restore the original value.
23 @echo 'first${.newline}second'