make/tests/scripts
Paul Smith bf7f690202 Directly handle $\ line endings
Previously we used the fact that this line ending expanded to "$ "
which would then expand to the empty string.  This has problems if
you enable warnings for undefined variables, so directly implement
this special (but documented) trick in the GNU Make parser.

As a side-effect this also removes all previous whitespace when
in GNU Make mode (not in POSIX mode) just as it would without "$".

* src/misc.c (collapse_continuations): Check for "$\" and remove it.
* tests/scripts/variables/flavors: Add regression tests including
with previous whitespace, and escaped/unescaped "$"
2023-02-26 17:30:15 -05:00
..
features Use a recursive environment if any command needs it 2023-02-21 20:53:48 -05:00
functions [SV 17448] Ignore whitespace around $(file ...) names 2023-01-08 18:06:54 -05:00
misc * tests/scripts/misc/general4: Only test empty PATH on UNIX 2023-02-20 11:11:59 -05:00
options * tests/scripts/options/dash-l: Simplify the test via the helper 2023-02-26 13:46:02 -05:00
targets [SV 63667] In .POSIX, use shell flags -c when ignoring errors 2023-01-28 13:04:47 -05:00
variables Directly handle $\ line endings 2023-02-26 17:30:15 -05:00
vms Convert references from "GNU make" to "GNU Make" 2023-01-01 17:05:12 -05:00
test_template Update the test template. A few fixes in run_make_test(). 2004-09-22 04:36:17 +00:00