[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Incorrect += handling?
From: |
psmith |
Subject: |
Incorrect += handling? |
Date: |
Fri, 1 Apr 2005 13:11:53 -0500 |
I just realized this, which I think might be a bug:
FOO := foo
FOO +=#nothing here
all: ; @echo '"$(FOO)"'
This prints:
$ make
"foo "
with a space, not:
"foo"
which is what I'd expect. Seems like the += adds the space character
even if the value being added is empty.
That doesn't seem like desirable behavior to me. Of course I can easily
fix this myself, I'm just wondering if anyone thinks this behavior is
correct and shouldn't be changed. The manual says only:
> [...] adds the text [...] to it (preceded by a single space).
Which doesn't directly address the situation where there is no text.
--
-------------------------------------------------------------------------------
Paul D. Smith <address@hidden> HASMAT: HA Software Mthds & Tools
"Please remain calm...I may be mad, but I am a professional." --Mad Scientist
-------------------------------------------------------------------------------
These are my opinions---Nortel Networks takes no responsibility for them.
- Incorrect += handling?,
psmith <=