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/


_______________________________________________
Bug-make mailing list
Bug-make@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-make

Reply via email to