A NOTE has been added to this issue. ====================================================================== http://austingroupbugs.net/view.php?id=1209 ====================================================================== Reported By: joerg Assigned To: ajosey ====================================================================== Project: 1003.1(2008)/Issue 7 Issue ID: 1209 Category: Shell and Utilities Type: Clarification Requested Severity: Editorial Priority: normal Status: Under Review Name: Jörg Schilling Organization: User Reference: Section: printf Page Number: 3116 Line Number: 104230-104240 Interp Status: --- Final Accepted Text: ====================================================================== Date Submitted: 2018-09-08 13:01 UTC Last Modified: 2018-09-11 01:37 UTC ====================================================================== Summary: printf example for numeric value of character is wrong ======================================================================
---------------------------------------------------------------------- (0004114) kre (reporter) - 2018-09-11 01:37 http://austingroupbugs.net/view.php?id=1209#c4114 ---------------------------------------------------------------------- The example is so clear, that printf %d '+3 is supposed to work, that it is hard to believe that this should generate an error. I think it just as likely that the "omitted' text is around lines 104155-6 (that is just before the "EXIT STATUS" section of the printf description in XCU 4) and that perhaps the correction should be to add a new clause at the end of that sentence ... or for a numeric conversion where the argument is in the form of a quoted string ('"' or "'" followed by text). This makes the "string" format args processing consistent in all forms, as much of the string as is needed is consumed, and any excess is ignored. Issue History Date Modified Username Field Change ====================================================================== 2018-09-08 13:01 joerg New Issue 2018-09-08 13:01 joerg Status New => Under Review 2018-09-08 13:01 joerg Assigned To => ajosey 2018-09-08 13:01 joerg Name => Jörg Schilling 2018-09-08 13:01 joerg Section => printf 2018-09-08 13:01 joerg Page Number => 3116 2018-09-08 13:01 joerg Line Number => 104230-104240 2018-09-11 01:37 kre Note Added: 0004114 ======================================================================