[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Possible bug with $(eval) and :=
From: |
Victor Shih |
Subject: |
Possible bug with $(eval) and := |
Date: |
Sat, 15 Dec 2012 15:04:17 -0800 |
A = abcdefghijklmnop
B = $(eval B := $A)$B
test:
@echo [$B]
@echo [$B]
On cygwin it seems to work fine:
[abcdefghijklmnopqr]
[abcdefghijklmnopqr]
But on Mac 10.6 as well as Ubuntu 12.04, it returns:
[p]
[abcdefghijklmnop]
All of these environments are running make 3.82.
The length of the definitions of A and B matter, too. Basically the first expansion of $B truncates as many characters as the $(eval ...) definition is long. Very strange.
Am I missing something?
--
Victor Shih
blog.vicshih.com
- Possible bug with $(eval) and :=,
Victor Shih <=