A NOTE has been added to this issue. ====================================================================== https://www.austingroupbugs.net/view.php?id=1951 ====================================================================== Reported By: Love4Boobies Assigned To: ====================================================================== Project: 1003.1(2024)/Issue8 Issue ID: 1951 Category: Shell and Utilities Tags: tc1-2024 Type: Error Severity: Editorial Priority: normal Status: Resolved Name: Bogdan Barbu Organization: User Reference: Section: getopts, EXAMPLES section Page Number: 2982 Line Number: 99728 Interp Status: --- Final Accepted Text: https://www.austingroupbugs.net/view.php?id=1951#c7322 Resolution: Accepted As Marked Fixed in Version: ====================================================================== Date Submitted: 2025-10-25 21:48 UTC Last Modified: 2025-11-14 08:22 UTC ====================================================================== Summary: getopts example oversight ======================================================================
---------------------------------------------------------------------- (0007326) stephane (reporter) - 2025-11-14 08:22 https://www.austingroupbugs.net/view.php?id=1951#c7326 ---------------------------------------------------------------------- > even though it should always be one <i>character</i> For the record, with the exception of yash's, all getopts implementations I tried at the moment seem to work at byte level, not character level (which make them all except yash non-compliant, though in practice it would be a bad idea to use option characters outside the portable character set). If not, switching to * would be better for the case where LC_CTYPE is different between the getopts implementation and the case construct. Issue History Date Modified Username Field Change ====================================================================== 2025-10-25 21:48 Love4Boobies New Issue 2025-10-30 16:58 geoffclare Note Added: 0007301 2025-11-13 16:27 geoffclare Note Added: 0007322 2025-11-13 16:28 geoffclare Status New => Resolved 2025-11-13 16:28 geoffclare Resolution Open => Accepted As Marked 2025-11-13 16:28 geoffclare Page Number https://pubs.opengroup.org/onlinepubs/9799919799/utilities/getopts.html => 2982 2025-11-13 16:28 geoffclare Line Number Idk, I used the web version => 99728 2025-11-13 16:28 geoffclare Interp Status => --- 2025-11-13 16:28 geoffclare Final Accepted Text => https://www.austingroupbugs.net/view.php?id=1951#c7322 2025-11-13 16:28 geoffclare Tag Attached: tc1-2024 2025-11-14 08:22 stephane Note Added: 0007326 ======================================================================
