URL: <https://savannah.gnu.org/bugs/?59247>
Summary: function shell eats a newline Project: make Submitted by: dgoncharov Submitted on: Sat 10 Oct 2020 06:24:33 PM UTC Severity: 3 - Normal Item Group: None 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: A user reported a bug here https://lists.gnu.org/archive/html/bug-make/2020-10/msg00016.html. From: Byrnes, Robert Subject: embedded newlines in shell function variable expansion Date: Fri, 9 Oct 2020 15:03:24 +0000 If I use this Makefile ... ---------------- bash$ cat Makefile FOO := $(shell echo $(ENTRIES) ; ) BAR := $(shell echo $(ENTRIES) ) all: @echo FOO = $(FOO) @echo BAR = $(BAR) .PHONY: all ---------------- ... and set ENTRIES with embedded newlines, then this happens: ---------------- bash$ make 'ENTRIES= blartz blurfl ' FOO = blartzblurfl BAR = blartz blurfl ---------------- _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/bugs/?59247> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/