The following issue has been SUBMITTED. ====================================================================== https://www.austingroupbugs.net/view.php?id=1833 ====================================================================== Reported By: Antonio Diaz Assigned To: ====================================================================== Project: 1003.1(2016/18)/Issue7+TC2 Issue ID: 1833 Category: Base Definitions and Headers Type: Omission Severity: Comment Priority: normal Status: New Name: Antonio Diaz Organization: GNU User Reference: Section: 12.1 Utility Argument Syntax Page Number: ? Line Number: ? Interp Status: --- Final Accepted Text: ====================================================================== Date Submitted: 2024-06-11 16:19 UTC Last Modified: 2024-06-11 16:19 UTC ====================================================================== Summary: Ambiguity about empty string used as option-argument Description: The second sentence of item 2a precludes the use of the empty string as an option-argument. [-p <string>] and [-p<string>] are equivalent only if <string> is not the empty string. [-p ""] and [-p""] are not equivalent.
The ambiguity of the single-argument case can be solved by appending "unless the option-argument is the empty string" at the end of the second sentence of item 2a. In other words, the <blank> character separating option and option-argument is optional, unless the option-argument is the empty string. Desired Action: Change the second sentence of item 2a from this: However, a conforming implementation shall also permit applications to specify the option and option-argument in the same argument string without intervening <blank> characters. to this: However, a conforming implementation shall also permit applications to specify the option and option-argument in the same argument string without intervening <blank> characters unless the option-argument is the empty string. ====================================================================== Issue History Date Modified Username Field Change ====================================================================== 2024-06-11 16:19 Antonio Diaz New Issue 2024-06-11 16:19 Antonio Diaz Name => Antonio Diaz 2024-06-11 16:19 Antonio Diaz Organization => GNU 2024-06-11 16:19 Antonio Diaz Section => 12.1 Utility Argument Syntax 2024-06-11 16:19 Antonio Diaz Page Number => ? 2024-06-11 16:19 Antonio Diaz Line Number => ? ======================================================================