Module Name: src Committed By: sjg Date: Wed Jul 1 18:02:27 UTC 2020
Modified Files: src/usr.bin/make: var.c src/usr.bin/make/unit-tests: varmisc.exp varmisc.mk Log Message: Fix parsing of nested variables during .for loop Recent change to cond.c to avoid eval of unnecessary terms had side effect on constructs like: .for s in 1 2 .if defined(MAN$s) && !empty(MAN$s) MAN+= ${MAN$s} .endif .endfor resulting in MAN being flagged as recursive. When Var_Parse encounters a variable within a variable name we want to force it to be expanded. But given the way get_mpt_arg calls Var_Parse we need to check whether we actually started parsing a variable yet. To generate a diff of this commit: cvs rdiff -u -r1.224 -r1.225 src/usr.bin/make/var.c cvs rdiff -u -r1.7 -r1.8 src/usr.bin/make/unit-tests/varmisc.exp cvs rdiff -u -r1.8 -r1.9 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.