Changes between Initial Version and Version 1 of Ticket #1830, comment 10
- Timestamp:
- May 8, 2024, 2:29:52 PM (7 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #1830, comment 10
initial v1 1 Posix spec is not very strict about it, it tells that getopt should update optind after option is processed, however, there is no promise that it should be pointed to valid arg. So i think if we will add logic m ax(optind, argc+1) it will not make any issues.1 Posix spec is not very strict about it, it tells that getopt should update optind after option is processed, however, there is no promise that it should be pointed to valid arg. So i think if we will add logic min(optind, argc) it will not make any issues.