This is the mail archive of the glibc-bugs@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]

[Bug manual/4690] getopt_long "--arg=val" and "--arg val" are not the same for "optional_argument"


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


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