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; 10+ 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] 10+ messages in thread

* [Bug libc/4690] getopt_long "--arg=val" and "--arg val" are not the same for "optional_argument"
  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 ` drepper at redhat dot com
  2007-06-22 19:17 ` david at blue-labs dot org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 10+ messages in thread
From: drepper at redhat dot com @ 2007-06-22 19:10 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From drepper at redhat dot com  2007-06-22 19:09 -------
That's how it has to be.  There will be no change.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WONTFIX


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] 10+ messages in thread

* [Bug libc/4690] getopt_long "--arg=val" and "--arg val" are not the same for "optional_argument"
  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
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 10+ messages in thread
From: david at blue-labs dot org @ 2007-06-22 19:17 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From david at blue-labs dot org  2007-06-22 19:16 -------
It "has to be" undocumented?

Perhaps you simply skimmed over this request.  Is it really a policy to not
document something?

It would be nice if the documentation stated that the two forms are
interchangeable except when using /optional_argument/ where --arg=val is the
only acceptable form because --arg val is entirely ambiguous.

It's a simple matter of correcting the documentation to reflect the actual
implementation in glibc.

Please reconsider adding this small note of distinction to the documentation.

-- 


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] 10+ messages in thread

* [Bug manual/4690] getopt_long "--arg=val" and "--arg val" are not the same for "optional_argument"
  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 ` 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
  4 siblings, 0 replies; 10+ messages in thread
From: roland at gnu dot org @ 2007-06-22 19:21 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From roland at gnu dot org  2007-06-22 19:21 -------
Moving to manual

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
          Component|libc                        |manual
         Resolution|WONTFIX                     |


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] 10+ messages in thread

* [Bug manual/4690] getopt_long "--arg=val" and "--arg val" are not the same for "optional_argument"
  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
                   ` (2 preceding siblings ...)
  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
  4 siblings, 0 replies; 10+ messages in thread
From: roland at gnu dot org @ 2007-06-22 19:22 UTC (permalink / raw)
  To: glibc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|drepper at redhat dot com   |roland at gnu dot org
             Status|REOPENED                    |NEW


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] 10+ messages in thread

* [Bug manual/4690] getopt_long "--arg=val" and "--arg val" are not the same for "optional_argument"
  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
                   ` (3 preceding siblings ...)
  2007-06-22 19:22 ` roland at gnu dot org
@ 2007-07-02 15:39 ` jakub at redhat dot com
  4 siblings, 0 replies; 10+ messages in thread
From: jakub at redhat dot com @ 2007-07-02 15:39 UTC (permalink / raw)
  To: glibc-bugs


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


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

* [Bug manual/4690] getopt_long "--arg=val" and "--arg val" are not the same for "optional_argument"
       [not found] <bug-4690-131@http.sourceware.org/bugzilla/>
                   ` (2 preceding siblings ...)
  2014-05-28 19:46 ` schwab at sourceware dot org
@ 2014-05-28 19:47 ` schwab at sourceware dot org
  3 siblings, 0 replies; 10+ messages in thread
From: schwab at sourceware dot org @ 2014-05-28 19:47 UTC (permalink / raw)
  To: glibc-bugs

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

Andreas Schwab <schwab at sourceware dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|jackie.rosen at hushmail dot com   |

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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

* [Bug manual/4690] getopt_long "--arg=val" and "--arg val" are not the same for "optional_argument"
       [not found] <bug-4690-131@http.sourceware.org/bugzilla/>
  2012-04-08  9:51 ` aj at suse dot de
  2014-02-16 19:20 ` jackie.rosen at hushmail dot com
@ 2014-05-28 19:46 ` schwab at sourceware dot org
  2014-05-28 19:47 ` schwab at sourceware dot org
  3 siblings, 0 replies; 10+ messages in thread
From: schwab at sourceware dot org @ 2014-05-28 19:46 UTC (permalink / raw)
  To: glibc-bugs

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

Andreas Schwab <schwab at sourceware dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|jackie.rosen at hushmail dot com   |

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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

* [Bug manual/4690] getopt_long "--arg=val" and "--arg val" are not the same for "optional_argument"
       [not found] <bug-4690-131@http.sourceware.org/bugzilla/>
  2012-04-08  9:51 ` aj at suse dot de
@ 2014-02-16 19:20 ` jackie.rosen at hushmail dot com
  2014-05-28 19:46 ` schwab at sourceware dot org
  2014-05-28 19:47 ` schwab at sourceware dot org
  3 siblings, 0 replies; 10+ messages in thread
From: jackie.rosen at hushmail dot com @ 2014-02-16 19:20 UTC (permalink / raw)
  To: glibc-bugs

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

Jackie Rosen <jackie.rosen at hushmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jackie.rosen at hushmail dot com

--- Comment #6 from Jackie Rosen <jackie.rosen at hushmail dot com> ---
*** Bug 260998 has been marked as a duplicate of this bug. ***
Seen from the domain http://volichat.com
Page where seen: http://volichat.com/adult-chat-rooms
Marked for reference. Resolved as fixed @bugzilla.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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

* [Bug manual/4690] getopt_long "--arg=val" and "--arg val" are not the same for "optional_argument"
       [not found] <bug-4690-131@http.sourceware.org/bugzilla/>
@ 2012-04-08  9:51 ` aj at suse dot de
  2014-02-16 19:20 ` jackie.rosen at hushmail dot com
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 10+ messages in thread
From: aj at suse dot de @ 2012-04-08  9:51 UTC (permalink / raw)
  To: glibc-bugs

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

Andreas Jaeger <aj at suse dot de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
                 CC|                            |aj at suse dot de
         Resolution|                            |WONTFIX

--- Comment #5 from Andreas Jaeger <aj at suse dot de> 2012-04-08 09:51:04 UTC ---
No reaction to Jakub's question for several years, thus closing it.

Feel free to reopen after providing the answer.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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

end of thread, other threads:[~2014-05-28 19:46 UTC | newest]

Thread overview: 10+ 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
     [not found] <bug-4690-131@http.sourceware.org/bugzilla/>
2012-04-08  9:51 ` aj at suse dot de
2014-02-16 19:20 ` jackie.rosen at hushmail dot com
2014-05-28 19:46 ` schwab at sourceware dot org
2014-05-28 19:47 ` schwab at sourceware dot org

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