A NOTE has been added to this issue. ====================================================================== https://austingroupbugs.net/view.php?id=1897 ====================================================================== Reported By: calestyo Assigned To: ====================================================================== Project: 1003.1(2024)/Issue8 Issue ID: 1897 Category: Shell and Utilities Type: Clarification Requested Severity: Editorial Priority: normal Status: New Name: Christoph Anton Mitterer Organization: User Reference: Section: 1.4 Utility Description Defaults; 12.2 Utility Syntax Guidelines Page Number: 2462, ff.; 215 ff. Line Number: 79707, ff; 7753, ff Interp Status: --- Final Accepted Text: ====================================================================== Date Submitted: 2024-12-19 01:56 UTC Last Modified: 2024-12-19 16:59 UTC ====================================================================== Summary: forward compatibility of utilities have options that extend POSIX but are not strictly required to support -- ======================================================================
---------------------------------------------------------------------- (0007024) geoffclare (manager) - 2024-12-19 16:59 https://austingroupbugs.net/view.php?id=1897#c7024 ---------------------------------------------------------------------- Interpretation response ------------------------ The standard does not speak to this issue, and as such no conformance distinction can be made between alternative implementations based on this. This is being referred to the sponsor. Rationale: ------------- The requirement for recognizing "--" as a first argument to be discarded was intended to apply to all utilities that say "None" in options. However, the use of the phrase "that do not accept options" means that utilities that accept options as an extension were not included. Applications also rely on being able to pass arguments beginning with '-' after an operand and not have it be treated as an option. For example, printf '%d\n' -2 Notes to the Editor (not part of this interpretation): ------------------------------------------------------- On page 2463 line 79710 section 1.4 Utility Description Defaults, after: <blockquote>Standard utilities that do not accept options, but that do accept operands, shall recognize "--" as a first argument to be discarded.</blockquote> add a sentence: <blockquote>Standard utilities that are not required to accept options but accept them as an extension, and which accept operands, shall conform to Guidelines 9 and 10 of [xref to XBD Section 12.2].</blockquote> Issue History Date Modified Username Field Change ====================================================================== 2024-12-19 01:56 calestyo New Issue 2024-12-19 01:56 calestyo Name => Christoph Anton Mitterer 2024-12-19 01:56 calestyo Section => 1.4 Utility Description Defaults; 12.2 Utility Syntax Guidelines 2024-12-19 01:56 calestyo Page Number => 2462, ff.; 215 ff. 2024-12-19 01:56 calestyo Line Number => 79707, ff; 7753, ff 2024-12-19 09:28 larryv Note Added: 0007015 2024-12-19 16:59 geoffclare Note Added: 0007024 ======================================================================
