Changes between Initial Version and Version 1 of Ticket #1830, comment 10


Ignore:
Timestamp:
May 8, 2024, 2:29:52 PM (7 months ago)
Author:
Alex Samorukov

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 max(optind, argc+1) it will not make any issues. 
     1Posix 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.