This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug manual/4690] getopt_long "--arg=val" and "--arg val" are not the same for "optional_argument"
- From: "jakub at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 2 Jul 2007 15:38:56 -0000
- Subject: [Bug manual/4690] getopt_long "--arg=val" and "--arg val" are not the same for "optional_argument"
- References: <20070622190036.4690.david@blue-labs.org>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From jakub at redhat dot com 2007-07-02 15:38 -------
Can you cite where you saw the two forms are interchangeable?
E.g. man getopt:
A long option normally begins with `--' followed by the long option name. If
the option has a required
argument, it may be written directly after the long option name, separated by
`=', or as the next argument
(ie. separated by whitespace on the command line). If the option has an
optional argument, it must be
written directly after the long option name, separated by `=', if present (if
you add the `=' but nothing
behind it, it is interpreted as if no argument was present; this is a slight
bug, see the BUGS).
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |WAITING
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.