From 50eb3cf5e5a8a68b68e966a6607f668f2c36191e Mon Sep 17 00:00:00 2001 From: Paul Smith Date: Wed, 15 Mar 2006 03:31:30 +0000 Subject: Fix Savannah bug #15913. --- tests/scripts/features/targetvars | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'tests/scripts/features') diff --git a/tests/scripts/features/targetvars b/tests/scripts/features/targetvars index 18dd023..e2e9c90 100644 --- a/tests/scripts/features/targetvars +++ b/tests/scripts/features/targetvars @@ -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; -- cgit v1.2.3