> It does not. You forgot to export CFLAGS.
Gosh I'm an idiot. Thanks.
> ${VAR//pattern/replacement} replaces every pattern in VAR by
replacement. Here it adds a backslash before every newline.
>
> If I trust https://steinbaugh.com/posts/posix.html#replacement, this
is POSIX-compliant.
It does not appear as a listed construct in
https://pubs.opengroup.org/onlinepubs/9799919799/utilities/V3_chap02.html#t=
ag_19_06_02
which is the official reference, so I'm not going to use it.
In any case, adding a backslash before very newline is the exact kind
of cursed half-baked quoting that causes as many problems as it solves.
(what if there's already a backslash before the newline? etc.)
If the problem is caused by IFS, then it should be solved by IFS.
Setting it back to the previous value should be all the fix that's
needed, shouldn't it?
--
Laurent
Received on Mon Mar 24 2025 - 21:09:58 CET