Fix Savannah bug #15913.

This commit is contained in:
Paul Smith
2006-03-15 03:31:30 +00:00
parent 6d8d9b74d9
commit 50eb3cf5e5
4 changed files with 37 additions and 9 deletions

View File

@@ -292,4 +292,16 @@ rules.mk : MYVAR = foo
rmfiles('t1/rules.mk');
rmdir('t1');
# TEST #18
# Test appending to a simple variable containing a "$": avoid a
# double-expansion. See Savannah bug #15913.
run_make_test("
VAR := \$\$FOO
foo: VAR += BAR
foo: ; \@echo '\$(VAR)'",
'',
'$FOO BAR');
1;