help-make
[Top][All Lists]
Advanced

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

Re: Multiline variables?


From: Greg Chicares
Subject: Re: Multiline variables?
Date: Sun, 20 Sep 2020 08:40:00 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0

On 2020-09-19 21:47, Dan Kegel wrote:
> 
> export PUB="$(base64 < ~/.ssh/id_rsa.pub)"
> make
> 
> where Makefile is
> 
> all:
>         echo "${PUB}"
> 
> and it worked fine on Mac, despite PUB being a multiline string.
> 
> On Ubuntu (even with the same version of gnu make),
> it breaks terribly, complaining about a missing quote
> on the end of the first line of the string.  Evidently this is not portable.
[...]
> I couldn't tell why they worked on the mac.  Any guesses?

Just a guess--If $PUB is exported before running make, in an
interactive shell, then is that shell zsh by default for mac,
but bash for ubuntu?


reply via email to

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