NetBSD/usr.bin/make/unit-tests/varmod-edge.exp
rillig b1ac54abf1 make(1): improve error message in case of unfinished modifiers
The previous error message "Unclosed substitution" was wrong for several
reasons.

It is not about "unclosed", but about "unfinished" since in the
:@var@...@ modifier the missing '@' does not really close anything.

The word "substitution" may have originated in a time where :S and
:from=to were the only modifiers, and these were indeed substitutions,
but several other modifiers aren't.

The :S and :C modifiers allow an arbitrary delimiter, therefore it is
helpful to enclose the delimiter in quotes, just in case someone chooses
')' or '{' or even ' ' as delimiter.
2020-08-08 13:27:42 +00:00

23 lines
981 B
Plaintext

make: "varmod-edge.mk" line omitted: ok M-paren
make: "varmod-edge.mk" line omitted: ok M-mixed
make: "varmod-edge.mk" line omitted: ok M-unescape
make: Unclosed variable specification (expecting '}') for "" (value "*)") modifier U
make: "varmod-edge.mk" line omitted: ok M-nest-mix
make: "varmod-edge.mk" line omitted: ok M-nest-brk
make: "varmod-edge.mk" line omitted: ok M-pat-err
make: "varmod-edge.mk" line omitted: ok M-bsbs
make: "varmod-edge.mk" line omitted: ok M-bs1-par
make: "varmod-edge.mk" line omitted: ok M-bs2-par
make: "varmod-edge.mk" line omitted: ok M-128
make: "varmod-edge.mk" line omitted: ok eq-ext
make: "varmod-edge.mk" line omitted: ok eq-q
make: "varmod-edge.mk" line omitted: ok eq-bs
make: Unfinished modifier for INP.eq-esc ('=' missing)
make: "varmod-edge.mk" line omitted: ok eq-esc
make: "varmod-edge.mk" line omitted: ok colon
make: Unknown modifier ':'
make: Unknown modifier ':'
make: "varmod-edge.mk" line omitted: ok colons
ok
exit status 0