diff options
| author | rillig <rillig@NetBSD.org> | 2020-12-20 19:47:34 +0000 |
|---|---|---|
| committer | rillig <rillig@NetBSD.org> | 2020-12-20 19:47:34 +0000 |
| commit | d880027d0349e9f36067d0a13dfbdb10d96f2d52 (patch) | |
| tree | 5abfcfa645f2589b147a3632918b0f21c28124f7 /usr.bin/make/unit-tests/varparse-errors.mk | |
| parent | 893b9c2bab60651f026705fe70d50a081e7150ef (diff) | |
make(1): error out on unknown variable modifiers at parse time
Before, make printed an "error message" that did not include the word
error and thus was not easily identified as such. This "error message"
also did not influence the exit status in the default mode but only in
-dL mode. The error message also didn't include any line number
information and was thus rude.
Diffstat (limited to 'usr.bin/make/unit-tests/varparse-errors.mk')
| -rw-r--r-- | usr.bin/make/unit-tests/varparse-errors.mk | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.bin/make/unit-tests/varparse-errors.mk b/usr.bin/make/unit-tests/varparse-errors.mk index 164d9ac7503..113c7a292a7 100644 --- a/usr.bin/make/unit-tests/varparse-errors.mk +++ b/usr.bin/make/unit-tests/varparse-errors.mk @@ -1,4 +1,4 @@ -# $NetBSD: varparse-errors.mk,v 1.2 2020/12/01 20:15:23 rillig Exp $ +# $NetBSD: varparse-errors.mk,v 1.3 2020/12/20 19:47:34 rillig Exp $ # Tests for parsing and evaluating all kinds of variable expressions. # @@ -33,12 +33,16 @@ ERR_EVAL= An evaluation error ${:Uvalue:C,.,\3,}. .endif # As of 2020-12-01, errors in the variable name are silently ignored. +# Since var.c 1.754 from 2020-12-20, unknown modifiers at parse time result +# in an error message and a non-zero exit status. VAR.${:U:Z}= unknown modifier in the variable name .if ${VAR.} != "unknown modifier in the variable name" . error .endif # As of 2020-12-01, errors in the variable name are silently ignored. +# Since var.c 1.754 from 2020-12-20, unknown modifiers at parse time result +# in an error message and a non-zero exit status. VAR.${:U:Z}post= unknown modifier with text in the variable name .if ${VAR.post} != "unknown modifier with text in the variable name" . error |
