mirror of
https://github.com/mirror/make.git
synced 2026-09-03 13:13:01 +08:00
* 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:
committed by
Paul Smith
parent
dd1980426e
commit
89bea82af3
@@ -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('
|
||||
|
||||
Reference in New Issue
Block a user