Module Name:    src
Committed By:   rillig
Date:           Tue Nov  3 17:59:27 UTC 2020

Modified Files:
        src/usr.bin/make/unit-tests: forsubst.mk

Log Message:
make(1): document the interesting part of the test forsubst.mk


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/usr.bin/make/unit-tests/forsubst.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/forsubst.mk
diff -u src/usr.bin/make/unit-tests/forsubst.mk:1.2 src/usr.bin/make/unit-tests/forsubst.mk:1.3
--- src/usr.bin/make/unit-tests/forsubst.mk:1.2	Sat Oct 24 08:34:59 2020
+++ src/usr.bin/make/unit-tests/forsubst.mk	Tue Nov  3 17:59:27 2020
@@ -1,4 +1,16 @@
-# $NetBSD: forsubst.mk,v 1.2 2020/10/24 08:34:59 rillig Exp $
+# $NetBSD: forsubst.mk,v 1.3 2020/11/03 17:59:27 rillig Exp $
+#
+# The parser used to break dependency lines at ';' without regard for
+# substitution patterns.  Back then, the first ';' was interpreted as the
+# separator between the dependency and its commands.  This (perhaps coupled
+# with the new handling of .for variables in ${:U<value>...) caused
+# interesting results for lines like:
+#
+# .for file in ${LIST}
+#   for-subst:       ${file:S;^;${here}/;g}
+# .endfor
+#
+# See the commit to unit-tests/forsubst (without the .mk) from 2009-10-07.
 
 all: for-subst
 

Reply via email to