bug-make
[Top][All Lists]
Advanced

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

Backslash handling not POSIX-compliant


From: Ivan Kozlov
Subject: Backslash handling not POSIX-compliant
Date: Tue, 28 Jul 2020 08:07:20 +0300

Doubling the backslash suppresses special newline handling in GNU make. I don’t 
see anything in the standard that allows this. It defines an escaped newline as 
one preceded by a backslash and doesn’t say anything about backslashes being 
treated specially otherwise.

Test case:
>.POSIX:
>test:
>       echo \\
>       true

Expected result: the command line
>echo \\
>true
being run.

>\
>true
being written to the standard output.

Actual result: two command lines 
>echo \\
and
>true
being run.

>\
being written to the standard output.



reply via email to

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