A NOTE has been added to this issue. ====================================================================== http://austingroupbugs.net/view.php?id=1231 ====================================================================== Reported By: stephane Assigned To: ====================================================================== Project: 1003.1(2016)/Issue7+TC2 Issue ID: 1231 Category: Shell and Utilities Type: Enhancement Request Severity: Objection Priority: normal Status: New Name: Stéphane Chazelas Organization: User Reference: Section: sed utility Page Number: 3218 Line Number: 107963-107965 Interp Status: --- Final Accepted Text: ====================================================================== Date Submitted: 2019-03-01 09:50 UTC Last Modified: 2019-06-06 15:59 UTC ====================================================================== Summary: backslash processing in text arguments ======================================================================
---------------------------------------------------------------------- (0004408) geoffclare (manager) - 2019-06-06 15:59 http://austingroupbugs.net/view.php?id=1231#c4408 ---------------------------------------------------------------------- Interpretation response ------------------------ The standard states the requirements for <backslash> handling in <i>text</i> arguments, and conforming implementations must conform to this. However, concerns have been raised about this which are being referred to the sponsor. Rationale: ------------- The standard does not match some existing practice. Notes to the Editor (not part of this interpretation): ------------------------------------------------------- Change:<blockquote>The argument <i>text</i> shall consist of one or more lines. Each embedded <newline> in the text shall be preceded by a <backslash>. Other <backslash> characters in text shall be removed, and the following character shall be treated literally.</blockquote>to:<blockquote>The argument <i>text</i> shall consist of one or more lines. A <backslash> in the text can be escaped with another <backslash>. The application shall ensure that each embedded <newline> (that is, those other than the terminating <newline> of the last line) in the text is preceded by an unescaped <backslash>. The behaviour is unspecified if an unescaped <backslash> is immediately followed by any character other than <backslash> or <newline>, or by the end of a <i>script</i>.</blockquote> Issue History Date Modified Username Field Change ====================================================================== 2019-03-01 09:50 stephane New Issue 2019-03-01 09:50 stephane Name => Stéphane Chazelas 2019-03-01 09:50 stephane Section => sed utility 2019-03-01 09:50 stephane Page Number => 3218 2019-03-01 09:50 stephane Line Number => 107963-107965 2019-06-06 15:59 geoffclare Note Added: 0004408 ======================================================================
