bug-make
[Top][All Lists]
Advanced

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

Re: embedded newlines in shell function variable expansion


From: Dmitry Goncharov
Subject: Re: embedded newlines in shell function variable expansion
Date: Sat, 10 Oct 2020 14:36:06 -0400

On Fri, Oct 9, 2020 at 11:11 AM Byrnes, Robert <Robert.Byrnes@deshaw.com> wrote:
>
> 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
> ----------------


Good morning.

i opened
https://savannah.gnu.org/bugs/index.php?59247
and attached a patch.
Thanks for your report and the example.

regards, Dmitry



reply via email to

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