This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] manual: Document optind zero set behaviour (BZ#23157)


It's not just test cases. Some GNU programs set optind=0 and expect this to cause getopt_long to rescan. The Coreutils programs env, nice, and stty all do this. This suggests that getopt_long should keep this behavior and its documentation, and that for consistency's sake getopt should also keep doing it.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]