public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/4690] New: getopt_long "--arg=val" and "--arg val" are not the same for "optional_argument"
@ 2007-06-22 19:00 david at blue-labs dot org
  2007-06-22 19:10 ` [Bug libc/4690] " drepper at redhat dot com
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: david at blue-labs dot org @ 2007-06-22 19:00 UTC (permalink / raw)
  To: glibc-bugs

When doing long opt processing, --arg=val and --arg val are interchangeable for
either no_argument or required_argument.  However when using optional_argument,
optarg is set only if the form --arg=val is used.  If the form --arg val is used
then the val is reported as an unknown argv option.

Granted that it may be a vague choice in determining that val is intended for
--arg vs. a value of it's own and therefore best left to the single form of
--arg=val, but all documentation related to getopt() and family refers to the
two forms being interchangeable.

I would like to request future releases of glibc document this in their online
manuals and man pages.

Thank you :)

-- 
           Summary: getopt_long "--arg=val" and "--arg val" are not the same
                    for "optional_argument"
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: libc
        AssignedTo: drepper at redhat dot com
        ReportedBy: david at blue-labs dot org
                CC: glibc-bugs at sources dot redhat dot com


http://sourceware.org/bugzilla/show_bug.cgi?id=4690

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2007-07-02 15:39 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-06-22 19:00 [Bug libc/4690] New: getopt_long "--arg=val" and "--arg val" are not the same for "optional_argument" david at blue-labs dot org
2007-06-22 19:10 ` [Bug libc/4690] " drepper at redhat dot com
2007-06-22 19:17 ` david at blue-labs dot org
2007-06-22 19:21 ` [Bug manual/4690] " roland at gnu dot org
2007-06-22 19:22 ` roland at gnu dot org
2007-07-02 15:39 ` jakub at redhat dot com

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).