This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/5762] getopt blank option
- From: "ebb9 at byu dot net" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 14 Feb 2008 13:29:38 -0000
- Subject: [Bug libc/5762] getopt blank option
- References: <20080214081935.5762.jidanni@jidanni.org>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From ebb9 at byu dot net 2008-02-14 13:29 -------
The problem is that when getopt parses '- ' as an invalid option, the error
message does not do any quoting to make it obvious what went wrong, and instead
leaves trailing blanks on the line. Compare:
$ cut -q
cut: invalid option -- q
Try `cut --help' for more information.
$ cut '- '
cut: invalid option --
Try `cut --help' for more information.
Perhaps the message "%s: invalid option -- %c" should be changed to "%s: invalid
option -- `%c'".
--
http://sourceware.org/bugzilla/show_bug.cgi?id=5762
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.