Re: misinterpretation of shell $'...' escape form

2022-10-15 Thread Paul Smith
On Sat, 2022-10-15 at 22:41 +0300, Poor Yorick wrote: > on an Ubuntu 22.04 system, GNU Make 4.3, Bash 5.1.16(1) GNU make, like all POSIX compliant makes, does not run bash. It runs the shell provided in the make variable (not the shell variable!) SHELL. That value is, by default, /bin/sh which i

misinterpretation of shell $'...' escape form

2022-10-15 Thread Poor Yorick
Given the following Makefile, define newline endef define cmd1 thing1 thing2 endef help: echo '$(subst $(newline),'$$'\n'',$(cmd1))' .PHONY: help , on an Ubuntu 22.04 system, GNU Make 4.3, Bash 5.1.16(1), and the Makefile below, "make help" produces the following