[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Conditional broken line in recipe
From: |
Paul Smith |
Subject: |
Re: Conditional broken line in recipe |
Date: |
Sun, 03 Sep 2023 08:46:31 -0400 |
User-agent: |
Evolution 3.48.4 (by Flathub.org) |
On Sun, 2023-09-03 at 13:20 +0200, Alejandro Colomar wrote:
> Never mind; a python script could be it.
Any language where a backslash at the end of the line changes the
semantics of the script is difficult to use as a make SHELL, without
also using .ONESHELL, because backslash/newline must be used to ensure
make interprets the recipe correctly, AND ALSO make preserves the
backslash/newline when it invokes the script.
Both Python and Perl fall into this category IIRC. In fact I consider
it likely that almost every scripting language does, although it might
be possible to avoid issues with obscure workarounds.
--
Paul D. Smith <psmith@gnu.org> Find some GNU make tips at:
https://www.gnu.org http://make.mad-scientist.net
"Please remain calm...I may be mad, but I am a professional." --Mad
Scientist
Re: Conditional broken line in recipe, Paul Smith, 2023/09/02
Re: Conditional broken line in recipe, Bahman Movaqar, 2023/09/03