This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/2679] getopt and optind (when called with different arguments)
- From: "bettini at dsi dot unifi dot it" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 25 May 2006 07:12:28 -0000
- Subject: [Bug libc/2679] getopt and optind (when called with different arguments)
- References: <20060521104128.2679.bettini@dsi.unifi.it>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From bettini at dsi dot unifi dot it 2006-05-25 07:12 -------
(In reply to comment #1)
> What "other implementations of getopt_long" do is irrelevant. This is a GNU
> extension and whatever others implemented is a derivate. File bugs with those
> implementations.
>
> Is see no problem with the existing code. Just use optind the way it is
> required. If you think some documentation is missing provide a patch.
All I'm saying is that, as I understand, the standard requires optind to be 1 at
the beginning; I was wondering why not taking (optind == 1) as the
initialization condition... Is there a reason why using (optind == 0)?
--
http://sourceware.org/bugzilla/show_bug.cgi?id=2679
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.