* src/function.c (func_let): Don't edit nonexistent values

* tests/scripts/functions/let: Test trailing whitespace in value list.
This commit is contained in:
Jouke Witteveen
2024-01-01 19:27:44 -05:00
committed by Paul Smith
parent dd1980426e
commit 89bea82af3
2 changed files with 6 additions and 6 deletions

View File

@@ -42,9 +42,10 @@ null =
v = $(let ,$(info blankvar),abc)
x = $(let $(null),$(info side-effect),abc)
y = $(let y,,$ydef)
z = $(let a b, ,+$a+$b+)
all: ; @echo $v/$x/$y',
'', "blankvar\nside-effect\nabc/abc/def\n");
all: ; @echo $v/$x/$y/$z',
'', "blankvar\nside-effect\nabc/abc/def/+++\n");
# The example macro from the manual.
run_make_test('