Module Name: src
Committed By: rillig
Date: Sun Dec 5 10:02:52 UTC 2021
Modified Files:
src/usr.bin/make/unit-tests: varmisc.mk
Log Message:
tests/make: fix documentation of .MAKE.SAVE_DOLLARS
To generate a diff of this commit:
cvs rdiff -u -r1.31 -r1.32 src/usr.bin/make/unit-tests/varmisc.mk
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.bin/make/unit-tests/varmisc.mk
diff -u src/usr.bin/make/unit-tests/varmisc.mk:1.31 src/usr.bin/make/unit-tests/varmisc.mk:1.32
--- src/usr.bin/make/unit-tests/varmisc.mk:1.31 Tue Nov 30 23:52:19 2021
+++ src/usr.bin/make/unit-tests/varmisc.mk Sun Dec 5 10:02:51 2021
@@ -1,4 +1,4 @@
-# $NetBSD: varmisc.mk,v 1.31 2021/11/30 23:52:19 rillig Exp $
+# $NetBSD: varmisc.mk,v 1.32 2021/12/05 10:02:51 rillig Exp $
#
# Miscellaneous variable tests.
@@ -83,7 +83,9 @@ SD_VALUES= 0 1 2 False True false true Y
SD_4_DOLLARS= $$$$
.for val in ${SD_VALUES}
-.MAKE.SAVE_DOLLARS:= ${val} # Must be := since a simple '=' has no effect.
+# The assignment must be done using ':=' since a simple '=' would be
+# interpreted as 'yes', due to the leading '$'; see ParseBoolean.
+.MAKE.SAVE_DOLLARS:= ${val}
SD.${val}:= ${SD_4_DOLLARS}
.endfor
.MAKE.SAVE_DOLLARS:= yes