A NOTE has been added to this issue. ====================================================================== https://austingroupbugs.net/view.php?id=1549 ====================================================================== Reported By: dmitry_goncharov Assigned To: ====================================================================== Project: 1003.1(2016/18)/Issue7+TC2 Issue ID: 1549 Category: Shell and Utilities Type: Clarification Requested Severity: Editorial Priority: normal Status: New Name: Dmitry Goncharov Organization: User Reference: Section: Makefile Syntax Page Number: 2973 Line Number: 98627 Interp Status: --- Final Accepted Text: ====================================================================== Date Submitted: 2022-01-13 16:18 UTC Last Modified: 2022-03-17 16:14 UTC ====================================================================== Summary: Escaped newline in macro expansion in command line. ======================================================================
---------------------------------------------------------------------- (0005754) geoffclare (manager) - 2022-03-17 16:14 https://austingroupbugs.net/view.php?id=1549#c5754 ---------------------------------------------------------------------- Interpretation response ------------------------ The standard is unclear on this issue, and no conformance distinction can be made between alternative implementations based on this. This is being referred to the sponsor. Rationale: ------------- None. Notes to the Editor (not part of this interpretation): ------------------------------------------------------- Change:<blockquote>When an escaped <newline> (one preceded by a <backslash>) is found anywhere in the makefile except in a command line, an include line, or a line immediately preceding an include line, it shall be replaced, along with any leading white space on the following line, with a single <space>. When an escaped <newline> is found in a command line in a makefile, the command line shall contain the <backslash>, the <newline>, and the next line, except that the first character of the next line shall not be included if it is a <tab>.</blockquote>to:<blockquote>When an escaped <newline> (one preceded by a <backslash>) is found anywhere in the makefile except in a command line after macro expansion, an include line, or a line immediately preceding an include line, it shall be replaced, along with any leading white space on the following line, with a single <space>. After all macro expansion is complete, when an escaped <newline> is found in a command line in a makefile, the command line that is executed shall contain the <backslash>, the <newline>, and the next line, except that the first character of the next line shall not be included if it is a <tab>.</blockquote> Issue History Date Modified Username Field Change ====================================================================== 2022-01-13 16:18 dmitry_goncharovNew Issue 2022-01-13 16:18 dmitry_goncharovName => Dmitry Goncharov 2022-01-13 16:18 dmitry_goncharovURL => https://pubs.opengroup.org/onlinepubs/9699919799/utilities/make.html 2022-01-13 16:18 dmitry_goncharovSection => Makefile Syntax 2022-01-14 09:46 geoffclare Project Online Pubs => 1003.1(2016/18)/Issue7+TC2 2022-01-14 09:47 geoffclare Page Number => 2973 2022-01-14 09:47 geoffclare Line Number => 98627 2022-01-14 09:47 geoffclare Interp Status => --- 2022-01-14 09:47 geoffclare Note Added: 0005604 2022-01-14 09:53 geoffclare Note Added: 0005605 2022-01-14 14:14 psmith Note Added: 0005606 2022-01-14 20:31 dmitry_goncharovNote Added: 0005609 2022-03-17 16:14 geoffclare Note Added: 0005754 ======================================================================
