[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Warnings on '$\\'
From: |
Dmitry Goncharov |
Subject: |
Re: Warnings on '$\\' |
Date: |
Mon, 17 Apr 2023 22:06:35 -0400 |
On Mon, Apr 17, 2023 at 3:39 PM Alejandro Colomar
<alx.manpages@gmail.com> wrote:
> Dmitry, why did $\\ work for you ($\ being my $(empty)), and not for me
> (as $(empty)\)?
¿Cómo estás, Alex?
When make parses a definition, first it performs line continuation
business, then expands macros.
In the case of $(empty)\<newline>, make replaces \<newline> with a
space during line continuation phase, then expands $(empty).
In the case of $\\<newline>, the 1st backslash escapes the 2nd
backslash and preserves \<newline> during line continuation phase.
Then $\ is expanded to an empty string. \<newline> remains.
regards, Dmitry