bug-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #46995] Within 'define' newline is treated as non whitespace


From: Gur Stavi
Subject: [bug #46995] Within 'define' newline is treated as non whitespace
Date: Thu, 28 Jan 2016 09:17:10 +0000
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:43.0) Gecko/20100101 Firefox/43.0

URL:
  <http://savannah.gnu.org/bugs/?46995>

                 Summary: Within 'define' newline is treated as non whitespace

                 Project: make
            Submitted by: gstavi
            Submitted on: Thu 28 Jan 2016 09:17:10 AM GMT
                Severity: 3 - Normal
              Item Group: Bug
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
       Component Version: None
        Operating System: None
           Fixed Release: None
           Triage Status: None

    _______________________________________________________

Details:

Observe the following example:
When 'function' is expended (into 'dummy') the foreach works on a variable
made of NEWLINE. This may be very confusing.

Makefile
------------------------
define function
$(foreach 
, $1,$(info $(
)))
endef

dummy := $(call function, aaa bbb ccc)

all:


Output
------------------------
aaa
bbb
ccc
make: Nothing to be done for 'all'.





    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?46995>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]