[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #35135] $() constructs that span multiple lines may add un-intended
From: |
Paul D. Smith |
Subject: |
[bug #35135] $() constructs that span multiple lines may add un-intended newlines |
Date: |
Tue, 20 Dec 2011 23:50:06 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.24) Gecko/20111107 Ubuntu/10.10 (maverick) Firefox/3.6.24 |
Update of bug #35135 (project make):
Status: None => Not A Bug
Open/Closed: Open => Closed
_______________________________________________________
Follow-up Comment #1:
This is expected behavior. One of the most important _features_ of
define/endef is that newlines are preserved. It's the only way to get
newlines into variable values, which is important in conjunction with $(eval
...) among other places.
If you want to embed newlines in the define but not have them in the result,
you must use backslashes to escape them; this works as expected:
define SOME_MACRO =
$(if ${SOMETHING}
, RESULT1
, RESULT2
)
endef
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?35135>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/