Module Name: src
Committed By: rillig
Date: Sun Feb 14 17:22:37 UTC 2021
Modified Files:
src/usr.bin/make/unit-tests: varmod-indirect.mk
Log Message:
make: document since when indirect modifiers are supported
To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/usr.bin/make/unit-tests/varmod-indirect.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/varmod-indirect.mk
diff -u src/usr.bin/make/unit-tests/varmod-indirect.mk:1.6 src/usr.bin/make/unit-tests/varmod-indirect.mk:1.7
--- src/usr.bin/make/unit-tests/varmod-indirect.mk:1.6 Sun Feb 14 16:12:46 2021
+++ src/usr.bin/make/unit-tests/varmod-indirect.mk Sun Feb 14 17:22:37 2021
@@ -1,11 +1,13 @@
-# $NetBSD: varmod-indirect.mk,v 1.6 2021/02/14 16:12:46 rillig Exp $
+# $NetBSD: varmod-indirect.mk,v 1.7 2021/02/14 17:22:37 rillig Exp $
#
# Tests for indirect variable modifiers, such as in ${VAR:${M_modifiers}}.
# These can be used for very basic purposes like converting a string to either
# uppercase or lowercase, as well as for fairly advanced modifiers that first
# look like line noise and are hard to decipher.
#
-# TODO: Since when are indirect modifiers supported?
+# Initial support for indirect modifiers was added in var.c 1.101 from
+# 2006-02-18. Since var.c 1.108 from 2006-05-11 it is possible to use
+# indirect modifiers for all but the very first modifier as well.
# To apply a modifier indirectly via another variable, the whole
@@ -202,7 +204,7 @@ _:= before ${UNDEF:${:UZ}} after
# interpretation only lasts until the end of the indirect modifier, it does
# not influence the outer variable expression.
#
-# In this expression, the direct ':ts*' has no effect since ':U' does not
+# In this first expression, the direct ':ts*' has no effect since ':U' does not
# treat the expression value as a list of words but as a single word. It has
# to be ':U', not ':D', since the "expression name" is "1 2 3" and there is no
# variable of that name.