public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "bettini at dsi dot unifi dot it" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sources.redhat.com
Subject: [Bug libc/2679] getopt and optind (when called with different arguments)
Date: Thu, 25 May 2006 07:12:00 -0000 [thread overview]
Message-ID: <20060525071228.5636.qmail@sourceware.org> (raw)
In-Reply-To: <20060521104128.2679.bettini@dsi.unifi.it>
------- 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.
prev parent reply other threads:[~2006-05-25 7:12 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-05-21 10:42 [Bug libc/2679] New: " bettini at dsi dot unifi dot it
2006-05-24 21:38 ` [Bug libc/2679] " drepper at redhat dot com
2006-05-25 7:12 ` bettini at dsi dot unifi dot it [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20060525071228.5636.qmail@sourceware.org \
--to=sourceware-bugzilla@sourceware.org \
--cc=glibc-bugs@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).